Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 12 additions & 16 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,19 @@ jobs:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
dependencies: "libssl-dev libasound2-dev libdbus-1-dev"
- os: ubuntu-latest
target: aarch64-unknown-linux-gnu
cross_arch: true

steps:
- name: Checkout source
uses: actions/checkout@v5

- name: Install Linux dependencies
if: matrix.dependencies
run: sudo apt-get update && sudo apt-get install -y ${{ matrix.dependencies }}

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Install dependencies
if: ${{ runner.os == 'Linux' }}
run: sudo apt-get update && sudo apt-get install ${{ matrix.dependencies }}

- name: Build
uses: actions-rs/cargo@v1
with:
use-cross: ${{ matrix.cross_arch }}
command: build
args: --locked --release --target ${{ matrix.target }}
shell: bash
run: |
cargo build --locked --release --target ${{ matrix.target }}

- name: Package
shell: bash
Expand All @@ -54,8 +44,14 @@ jobs:
tar czvf hullcaster-${{ matrix.target }}.tar.gz hullcaster
shasum -a 256 hullcaster-${{ matrix.target }}.tar.gz > hullcaster-${{ matrix.target }}.sha256

- uses: actions/upload-artifact@v4
with:
name: hullcaster-${{ matrix.target }}.tar.gz
path: target/${{ matrix.target }}/release/hullcaster-${{ matrix.target }}.tar.gz

- name: Release
uses: softprops/action-gh-release@v2
if: github.ref_type == 'tag'
with:
files: target/${{ matrix.target }}/release/hullcaster-*
env:
Expand Down
15 changes: 1 addition & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,35 +19,22 @@ jobs:
strategy:
matrix:
include:
- os: macos-latest
target: x86_64-apple-darwin
- os: macos-latest
target: aarch64-apple-darwin
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
dependencies: "libssl-dev libasound2-dev libdbus-1-dev"
- os: ubuntu-latest
target: aarch64-unknown-linux-gnu
cross_arch: true
toolchain: [1.88.0]

runs-on: ${{ matrix.os }}

steps:
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install libssl-dev libasound2-dev libdbus-1-dev
if: ${{ runner.os == 'Linux' }}
run: sudo apt-get update && sudo apt-get install ${{ matrix.dependencies }}

- name: Checkout source
uses: actions/checkout@v5

- name: Install Rust toolchain
id: install_toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: clippy, rustfmt

- name: Cache cargo deps
uses: actions/cache@v4
with:
Expand Down