Skip to content

Commit

Permalink
ci: Create Github build action for release
Browse files Browse the repository at this point in the history
  • Loading branch information
erak committed Mar 5, 2024
1 parent 427e321 commit f849cfa
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 31 deletions.
43 changes: 34 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
22 changes: 0 additions & 22 deletions .github/workflows/rust.yml

This file was deleted.

0 comments on commit f849cfa

Please sign in to comment.