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
17 changes: 13 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,16 @@ on:

jobs:
release-ubuntu:
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
include:
- runs-on: ubuntu-latest
arch: amd64
- runs-on: ubuntu-24.04-arm
arch: arm64
runs-on: ${{ matrix.runs-on }}

steps:
- uses: actions/checkout@v4
Expand All @@ -26,7 +35,7 @@ jobs:

- uses: Swatinem/rust-cache@v2
with:
shared-key: ${{ runner.os }}
shared-key: ${{ runner.os }}-${{ matrix.arch }}

- name: Install cargo-deb
run: cargo install cargo-deb
Expand All @@ -37,7 +46,7 @@ jobs:
cargo deb -p "$f" || exit 1
done

- name: Create Release (Ubuntu)
- name: Create Release (Ubuntu ${{ matrix.arch }})
id: create_release_ubuntu
uses: ncipollo/release-action@v1
with:
Expand All @@ -47,4 +56,4 @@ jobs:
omitNameDuringUpdate: true
omitBodyDuringUpdate: true
omitPrereleaseDuringUpdate: true
artifacts: target/debian/*.deb
artifacts: target/debian/*.deb
2 changes: 1 addition & 1 deletion ares-install/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ struct Cli {
fn main() {
let cli = Cli::parse();
let manager = DeviceManager::default();
let device = manager.find_or_default(cli.device).unwrap();
let device = manager.find_or_default(cli.device.as_ref()).unwrap();
if device.is_none() {
eprintln!("Device not found");
exit(1);
Expand Down
2 changes: 1 addition & 1 deletion ares-launch/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ struct LaunchResponse {
fn main() {
let cli = Cli::parse();
let manager = DeviceManager::default();
let device = manager.find_or_default(cli.device).unwrap();
let device = manager.find_or_default(cli.device.as_ref()).unwrap();
if device.is_none() {
eprintln!("Device not found");
exit(1);
Expand Down
2 changes: 1 addition & 1 deletion ares-push/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct Cli {
fn main() {
let cli = Cli::parse();
let manager = DeviceManager::default();
let Some(device) = manager.find_or_default(cli.device).unwrap() else {
let Some(device) = manager.find_or_default(cli.device.as_ref()).unwrap() else {
eprintln!("Device not found");
exit(1);
};
Expand Down
Loading