github.com/tailscale/wireguard-go@v0.0.20201119-0.20210522003738-46b531feb08a/.github/workflows/linux32.yml (about) 1 name: Linux 32 bit 2 3 on: 4 push: 5 branches: 6 - main 7 pull_request: 8 branches: 9 - "*" 10 11 jobs: 12 build: 13 runs-on: ubuntu-latest 14 15 if: "!contains(github.event.head_commit.message, '[ci skip]')" 16 17 steps: 18 - name: Set up Go 19 uses: actions/setup-go@v1 20 with: 21 go-version: 1.16 22 id: go 23 24 - name: Check out code into the Go module directory 25 uses: actions/checkout@v1 26 27 - name: Basic build 28 run: GOARCH=386 go build ./... 29 30 - name: Run tests on linux 31 run: GOARCH=386 go test -bench=. -benchtime=1x ./... 32 33 - uses: k0kubun/action-slack@v2.0.0 34 with: 35 payload: | 36 { 37 "attachments": [{ 38 "text": "${{ job.status }}: ${{ github.workflow }} <https://github.com/${{ github.repository }}/commit/${{ github.sha }}/checks|${{ env.COMMIT_DATE }} #${{ env.COMMIT_NUMBER_OF_DAY }}> " + 39 "(<https://github.com/${{ github.repository }}/commit/${{ github.sha }}|" + "${{ github.sha }}".substring(0, 10) + ">) " + 40 "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }}", 41 "color": "danger" 42 }] 43 } 44 env: 45 SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} 46 if: failure() && github.event_name == 'push'