-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Create Github build action for release
- Loading branch information
Showing
2 changed files
with
34 additions
and
31 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,20 +34,45 @@ jobs: | |
~/.cargo/git | ||
target | ||
key: cargo-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }} | ||
- name: Build the binaries | ||
- name: Build release binaries | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
image: ${{ matrix.docker_image }} | ||
options: ${{ matrix.docker_options }} | ||
run: cargo build --release --target "${{ matrix.target }}" | ||
- name: Build the debug binaries | ||
uses: addnab/docker-run-action@v3 | ||
- name: Upload release binaries | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
image: ${{ matrix.docker_image }} | ||
options: ${{ matrix.docker_options }} | ||
run: cargo build --target "${{ matrix.target }}" | ||
- name: Upload binaries | ||
name: radicle-tui_${{ matrix.target }} | ||
path: target/${{ matrix.target }}/release/rad-tui | ||
|
||
release-macos-binaries: | ||
permissions: | ||
contents: 'read' | ||
id-token: 'write' | ||
runs-on: macos-11 | ||
strategy: | ||
matrix: | ||
target: | ||
- aarch64-apple-darwin | ||
- x86_64-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: dtolnay/[email protected] | ||
- name: Build release binaries | ||
run: | | ||
rustup target add "${{ matrix.target }}" | ||
cargo build --release --target "${{ matrix.target }}" | ||
- name: Upload release binaries | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: rad-tui | ||
path: target/release/rad-tui | ||
name: radicle-tui_${{ matrix.target }} | ||
path: target/${{ matrix.target }}/release/rad-tui |
This file was deleted.
Oops, something went wrong.