Repository navigation
Fixed index off-by-one error when grabbing the user's email address #388
Workflow file for this run
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 Checks" | |
| on: | |
| push: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build-pivit: | |
| name: "Build Pivit" | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| go-version: [1.23.x] | |
| os: [ubuntu-latest, macos-latest] | |
| steps: | |
| - name: "Install golang" | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - if: ${{ matrix.os == 'ubuntu-latest' }} | |
| name: "Install dependencies" | |
| run: | | |
| sudo apt update | |
| sudo apt install -y libpcsclite-dev | |
| - name: "Checkout code" | |
| uses: actions/checkout@v4 | |
| - name: "Build and test" | |
| run: | | |
| set -euxo pipefail | |
| cd ${{ github.workspace }} | |
| make test | |
| if ${{ matrix.os == 'macos-latest' }}; then | |
| # Cross compile for darwin-arm64 | |
| # Because arm64 binary does not run on an x86_64 runner, we don't | |
| # test it | |
| make pivit GOARCH=arm64 | |
| fi | |
| - name: Upload results to Codecov | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |