feat: return native typed python outcomes (#88) #79
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: Release artifacts | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build (${{ matrix.artifact }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-24.04 | |
| artifact: isanagent-linux-x86_64 | |
| - os: windows-latest | |
| artifact: isanagent-windows-x86_64 | |
| - os: macos-latest | |
| artifact: isanagent-macos-aarch64 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: release-artifacts | |
| - name: Build release binary | |
| run: cargo build --release --locked | |
| - name: Package binary | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| mkdir -p dist | |
| if [[ "${RUNNER_OS}" == "Windows" ]]; then | |
| cp target/release/isanagent.exe "dist/${{ matrix.artifact }}.exe" | |
| else | |
| cp target/release/isanagent "dist/${{ matrix.artifact }}" | |
| fi | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.artifact }} | |
| path: dist/* | |
| if-no-files-found: error | |
| release: | |
| name: Publish GitHub Release | |
| needs: build | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.sha }} | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| path: artifacts | |
| pattern: isanagent-* | |
| merge-multiple: true | |
| - name: Move rolling tag to this commit | |
| run: | | |
| set -euo pipefail | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git tag -f main-latest | |
| git push -f origin refs/tags/main-latest | |
| - uses: ncipollo/release-action@v1 | |
| with: | |
| tag: main-latest | |
| name: Latest main build | |
| body: | | |
| Binaries built from `main` @ [`${{ github.sha }}`](${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}). | |
| Workflow run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
| commit: ${{ github.sha }} | |
| allowUpdates: true | |
| replacesArtifacts: true | |
| makeLatest: true | |
| artifacts: "artifacts/*" |