@@ -30,25 +30,28 @@ jobs:
3030 fail-fast : false
3131 matrix :
3232 include :
33- - os : [self-hosted, bigbox]
33+ # GitHub-hosted Linux: terraphim-ai self-hosted runners are repo-scoped.
34+ - os : ubuntu-22.04
3435 target : x86_64-unknown-linux-gnu
3536 use_cross : false
36- - os : [self-hosted, bigbox]
37+ - os : ubuntu-22.04
3738 target : x86_64-unknown-linux-musl
3839 use_cross : true
39- - os : [self-hosted, bigbox]
40+ - os : ubuntu-22.04
4041 target : aarch64-unknown-linux-musl
4142 use_cross : true
42- - os : [self-hosted, macOS]
43+ - os : macos-latest
4344 target : x86_64-apple-darwin
4445 use_cross : false
45- - os : [self-hosted, macOS]
46+ - os : macos-latest
4647 target : aarch64-apple-darwin
4748 use_cross : false
4849 - os : windows-latest
4950 target : x86_64-pc-windows-msvc
5051 use_cross : false
5152 runs-on : ${{ matrix.os }}
53+ env :
54+ CARGO_REGISTRIES_TERRAPHIM_TOKEN : ${{ secrets.CARGO_REGISTRIES_TERRAPHIM_TOKEN }}
5255 steps :
5356 - uses : actions/checkout@v4
5457 - uses : dtolnay/rust-toolchain@stable
@@ -63,16 +66,23 @@ jobs:
6366 if command -v choco &>/dev/null; then choco install zig -y; fi
6467 - name : Install cross
6568 if : matrix.use_cross
66- run : cargo install cross
69+ run : |
70+ if command -v cross &>/dev/null; then
71+ cross --version
72+ exit 0
73+ fi
74+ rustup run stable cargo install cross --locked --git https://github.com/cross-rs/cross
6775 - uses : Swatinem/rust-cache@v2
6876 if : matrix.target != 'x86_64-unknown-linux-gnu'
6977 with :
7078 key : clients-${{ matrix.target }}
7179 - name : Build client binaries
72- env :
73- CARGO_REGISTRIES_TERRAPHIM_TOKEN : ${{ secrets.CARGO_REGISTRIES_TERRAPHIM_TOKEN }}
7480 run : |
75- BUILD="${{ matrix.use_cross && 'cross' || 'cargo' }}"
81+ if [ "${{ matrix.use_cross }}" = "true" ]; then
82+ BUILD="rustup run stable cross"
83+ else
84+ BUILD="rustup run stable cargo"
85+ fi
7686 $BUILD build --release --target ${{ matrix.target }} -p terraphim_agent --bin terraphim-agent
7787 $BUILD build --release --target ${{ matrix.target }} -p terraphim_cli --bin terraphim-cli
7888 $BUILD build --release --target ${{ matrix.target }} -p terraphim_grep --bin terraphim-grep --features "code-search openrouter"
@@ -113,7 +123,7 @@ jobs:
113123 name : Create macOS universal client binaries
114124 needs : build-binaries
115125 if : always() && needs.build-binaries.result != 'cancelled'
116- runs-on : [self-hosted, macOS]
126+ runs-on : macos-latest
117127 steps :
118128 - uses : actions/download-artifact@v4
119129 with :
@@ -137,7 +147,7 @@ jobs:
137147 name : Sign and notarize macOS client binaries
138148 needs : create-universal-macos
139149 if : always() && needs.create-universal-macos.result == 'success'
140- runs-on : [self-hosted, macOS]
150+ runs-on : macos-latest
141151 steps :
142152 - uses : actions/checkout@v4
143153 - uses : actions/download-artifact@v4
@@ -184,4 +194,4 @@ jobs:
184194 TAG="${{ inputs.release_tag }}"
185195 REPO="terraphim/${{ inputs.target_repo }}"
186196 find release-assets -type f | sort
187- gh release upload "$TAG" release-assets/* --repo "$REPO" --clobber
197+ gh release upload "$TAG" release-assets/* --repo "$REPO" --clobber
0 commit comments