diff --git a/.github/workflows/check-go-cross-build-task.yml b/.github/workflows/check-go-cross-build-task.yml deleted file mode 100644 index 12074919..00000000 --- a/.github/workflows/check-go-cross-build-task.yml +++ /dev/null @@ -1,92 +0,0 @@ -name: Check Cross Build - -env: - # See: https://github.com/actions/setup-go/tree/v2#readme - GO_VERSION: "1.15" - -# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows -on: - create: - push: - paths: - - ".github/workflows/check-go-cross-build-task.ya?ml" - - "go.mod" - - "go.sum" - - "Taskfile.ya?ml" - - "**.go" - pull_request: - paths: - - ".github/workflows/check-go-cross-build-task.ya?ml" - - "go.mod" - - "go.sum" - - "Taskfile.ya?ml" - - "**.go" - workflow_dispatch: - repository_dispatch: - -jobs: - run-determination: - runs-on: ubuntu-latest - outputs: - result: ${{ steps.determination.outputs.result }} - steps: - - name: Determine if the rest of the workflow should run - id: determination - run: | - RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x" - # The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead. - if [[ \ - "${{ github.event_name }}" != "create" || \ - "${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX \ - ]]; then - # Run the other jobs. - RESULT="true" - else - # There is no need to run the other jobs. - RESULT="false" - fi - - echo "::set-output name=result::$RESULT" - - build: - needs: run-determination - if: needs.run-determination.outputs.result == 'true' - - strategy: - matrix: - os: - - ubuntu-latest - - windows-latest - - macos-latest - - runs-on: ${{ matrix.os }} - - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Install Go - uses: actions/setup-go@v3 - with: - go-version: ${{ env.GO_VERSION }} - - - name: Install Taskfile - uses: arduino/setup-task@v1 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - version: 3.x - - - name: Build native - run: task build - - - name: Cross-build for 386 - if: matrix.os != 'macos-latest' - env: - GOARCH: "386" - run: task build - - - name: Cross-build for arm - if: matrix.os != 'macos-latest' - env: - GOARCH: "arm" - run: task build