diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 96e5e45..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,89 +0,0 @@ -name: Build bot - -on: [push, pull_request] - -jobs: - build-linux: - runs-on: ubuntu-latest - steps: - - name: Check out the repo - uses: actions/checkout@v2 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - name: Login to DockerHub - if: github.repository == 'erebe/wstunnel' - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.CR_PAT }} - - # - name: wstunnel-builder-cache - # id: docker_build_wstunnel-cache - # uses: docker/build-push-action@v2 - # with: - # push: true - # tags: ghcr.io/erebe/wstunnel:builder-cache - # target: builder-cache - - - name: wstunnel - id: docker_build_wstunnel - uses: docker/build-push-action@v2 - with: - push: ${{ github.repository == 'erebe/wstunnel' && github.ref == 'refs/heads/master' }} - tags: ghcr.io/erebe/wstunnel:latest - - - name: extract Artifact - run: | - docker cp $(docker create ghcr.io/erebe/wstunnel:latest /bin/sh -c 'sleep 5000'):/wstunnel . - ./wstunnel - - - uses: actions/upload-artifact@v1 - with: - name: wstunnel-linux-x64 - path: wstunnel - - build-windows: - runs-on: windows-latest - steps: - - uses: actions/checkout@v2 - -# - name: Install stack -# run: | -# curl -sSL https://get.haskellstack.org/ | sh - - - name: Setup GHC - run: | - stack setup - - - name: Build - run: | - stack install - - - uses: actions/upload-artifact@v1 - with: - name: wstunnel-windows-x64.exe - path: C:\Users\runneradmin\AppData\Roaming\local\bin\wstunnel.exe - - - build-macos: - runs-on: macos-latest - steps: - - uses: actions/checkout@v2 - -# - name: Install stack -# run: | -# curl -sSL https://get.haskellstack.org/ | sh - - - name: Setup GHC - run: | - stack setup - - - name: Build - run: | - stack install - - - uses: actions/upload-artifact@v1 - with: - name: wstunnel-macos - path: /Users/runner/.local/bin/wstunnel diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4e3fbd0..454fb04 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -44,6 +44,7 @@ jobs: steps: - name: Create annotation for build error + if: contains(matrix.platform.target, 'linux') run: sudo apt install musl-tools - name: Checkout Git repo