ci: ensure secrets are inherited in release-prechecks #12
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: CI | |
| on: | |
| push: | |
| branches: [master, develop] | |
| pull_request: | |
| branches: [master, develop] | |
| jobs: | |
| checks: | |
| name: Run Checks | |
| uses: ./.github/workflows/checks.yml | |
| build: | |
| name: Build Cross-Platform | |
| runs-on: ubuntu-latest | |
| needs: [checks] | |
| strategy: | |
| matrix: | |
| goos: [linux, windows, darwin] | |
| goarch: [amd64, arm64] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Build optimized cross-platform binary | |
| env: | |
| GOOS: ${{ matrix.goos }} | |
| GOARCH: ${{ matrix.goarch }} | |
| run: | | |
| EXT="" | |
| if [ "$GOOS" = "windows" ]; then | |
| EXT=".exe" | |
| fi | |
| make release | |
| mv build/emojify "emojify-$GOOS-$GOARCH$EXT" | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: emojify-${{ matrix.goos }}-${{ matrix.goarch }} | |
| path: emojify-* | |
| retention-days: 30 |