bump: sdk to latest commit #642
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: Go | |
| on: | |
| push: | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/vanilla-os/pico:main | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: Build | |
| run: | | |
| go build -o apx -ldflags="-X 'main.Version=${{ github.sha }}'" ./cmd | |
| tar -czvf apx-amd64.tar.gz apx | |
| GOARCH=arm64 go build -o apx -ldflags="-X 'main.Version=${{ github.sha }}'" ./cmd | |
| tar -czvf apx-arm64.tar.gz apx | |
| tar -czvf apx-man.tar.gz man/man1/apx.1 | |
| - name: Check for missing strings | |
| run: | | |
| go build -tags check_missing_strings -o apx-check ./cmd | |
| ./apx-check | |
| - uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: missing-strings-report | |
| path: missing_strings.json | |
| - uses: softprops/action-gh-release@v2 | |
| if: github.repository == 'vanilla-os/apx' && github.ref == 'refs/heads/main' | |
| with: | |
| token: "${{ secrets.GITHUB_TOKEN }}" | |
| tag_name: "continuous" | |
| prerelease: true | |
| name: "Continuous Build" | |
| files: apx*.tar.gz |