Upload macOS binaries for e2e testing
This commit is contained in:
parent
9243b9fdeb
commit
73b7db10fe
|
|
@ -5,7 +5,7 @@ on:
|
||||||
branches: [master]
|
branches: [master]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release-x86_64-linux-binaries:
|
release-gcloud-x86_64-linux-binaries:
|
||||||
permissions:
|
permissions:
|
||||||
contents: 'read'
|
contents: 'read'
|
||||||
id-token: 'write'
|
id-token: 'write'
|
||||||
|
|
@ -43,3 +43,43 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: target/x86_64-unknown-linux-musl/release/radicle-httpd
|
path: target/x86_64-unknown-linux-musl/release/radicle-httpd
|
||||||
destination: heartwood-artifacts/${{ github.sha }}/
|
destination: heartwood-artifacts/${{ github.sha }}/
|
||||||
|
|
||||||
|
release-gcloud-macos-binaries:
|
||||||
|
permissions:
|
||||||
|
contents: 'read'
|
||||||
|
id-token: 'write'
|
||||||
|
runs-on: macos-11
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
target:
|
||||||
|
- aarch64-apple-darwin
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Configure build cache
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cargo/registry
|
||||||
|
~/.cargo/git
|
||||||
|
target
|
||||||
|
key: cargo-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
- uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
profile: minimal
|
||||||
|
target: ${{ matrix.target }}
|
||||||
|
- name: Build the release binaries
|
||||||
|
run: |
|
||||||
|
cd radicle-httpd
|
||||||
|
cargo build --release --target ${{ matrix.target }}
|
||||||
|
- id: 'auth'
|
||||||
|
uses: 'google-github-actions/auth@v1'
|
||||||
|
with:
|
||||||
|
workload_identity_provider: 'projects/281042598092/locations/global/workloadIdentityPools/github-actions/providers/google-cloud'
|
||||||
|
service_account: 'github-actions@radicle-services.iam.gserviceaccount.com'
|
||||||
|
- name: 'Set up Cloud SDK'
|
||||||
|
uses: 'google-github-actions/setup-gcloud@v1'
|
||||||
|
- id: 'upload-file'
|
||||||
|
uses: 'google-github-actions/upload-cloud-storage@v1'
|
||||||
|
with:
|
||||||
|
path: target/${{ matrix.target }}/release/radicle-httpd
|
||||||
|
destination: heartwood-artifacts/${{ github.sha }}/${{ matrix.target }}/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue