Build Go tip #1079
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Go tip | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - gotip | |
| schedule: | |
| # * is a special character in YAML so you have to quote this string | |
| - cron: '0 12 * * *' | |
| jobs: | |
| gotip: | |
| name: Build Go Tip | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| arch: [arm64, amd64] | |
| os: [linux, darwin] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # ratchet:actions/checkout@v2 | |
| - name: Init Hermit | |
| run: ./bin/hermit env --raw >> $GITHUB_ENV | |
| - name: Build Go | |
| run: make GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} -C gotip | |
| - name: Upload Release | |
| uses: ncipollo/release-action@440c8c1cb0ed28b9f43e4d1d670870f059653174 # ratchet:ncipollo/release-action@v1 | |
| with: | |
| tag: gotip | |
| allowUpdates: true | |
| replacesArtifacts: true # Safe to replace; gotip has no checksum | |
| artifacts: "gotip/go-*.tbz" | |
| token: ${{ secrets.GITHUB_TOKEN }} |