Expand authorize.rs test coverage across callback paths #87
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: Native Binary Release | |
| on: | |
| push: | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| description: "Tag to build from (for example: v1.7.2)" | |
| required: false | |
| type: string | |
| permissions: | |
| contents: write | |
| jobs: | |
| native-binaries: | |
| name: Build and Upload Native Binaries | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| target: x86_64-unknown-linux-gnu | |
| binary_name: corgea | |
| - os: ubuntu-24.04-arm | |
| target: aarch64-unknown-linux-gnu | |
| binary_name: corgea | |
| - os: macos-latest | |
| target: x86_64-apple-darwin | |
| binary_name: corgea | |
| - os: macos-latest | |
| target: aarch64-apple-darwin | |
| binary_name: corgea | |
| - os: windows-latest | |
| target: x86_64-pc-windows-msvc | |
| binary_name: corgea.exe | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ inputs.tag || github.ref }} | |
| - name: Install Rust Target | |
| run: rustup target add ${{ matrix.target }} | |
| - name: Build Binary | |
| run: cargo build --release --target ${{ matrix.target }} | |
| - name: Archive Binary (Unix) | |
| if: runner.os != 'Windows' | |
| shell: bash | |
| run: | | |
| zip -j "corgea-${{ matrix.target }}.zip" \ | |
| "target/${{ matrix.target }}/release/${{ matrix.binary_name }}" | |
| - name: Archive Binary (Windows) | |
| if: runner.os == 'Windows' | |
| shell: pwsh | |
| run: | | |
| Compress-Archive ` | |
| -Path "target\${{ matrix.target }}\release\${{ matrix.binary_name }}" ` | |
| -DestinationPath "corgea-${{ matrix.target }}.zip" ` | |
| -Force | |
| - name: Upload to GitHub Release (tags) | |
| if: startsWith(github.ref, 'refs/tags/') || inputs.tag != '' | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ inputs.tag || github.ref_name }} | |
| files: "corgea-${{ matrix.target }}.zip" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Upload as Artifact (branches) | |
| if: ${{ !startsWith(github.ref, 'refs/tags/') && inputs.tag == '' }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: binaries-${{ matrix.target }} | |
| path: "corgea-${{ matrix.target }}.zip" |