Skip to content

Commit

Permalink
chore: Use cargo-run-bin on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Blackman committed Dec 3, 2023
1 parent 5e0e73c commit 5687058
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Expand Up @@ -12,3 +12,5 @@ insta = ["bin", "cargo-insta"]
llvm-cov = ["bin", "cargo-llvm-cov"]
nextest = ["bin", "cargo-nextest"]
watch = ["bin", "cargo-watch"]
xwin = ["bin", "cargo-xwin"]
zigbuild = ["bin", "cargo-zigbuild"]
22 changes: 20 additions & 2 deletions .github/workflows/release.yml
Expand Up @@ -10,6 +10,9 @@ jobs:
profile: minimal
toolchain: stable
target: x86_64-unknown-linux-gnu
- uses: Swatinem/rust-cache@v2
with:
cache-directories: ".bin"
- name: Build
run: |
cargo build --release --target x86_64-unknown-linux-gnu
Expand All @@ -26,6 +29,9 @@ jobs:
- uses: goto-bus-stop/setup-zig@v2
with:
version: 0.11.0
- uses: Swatinem/rust-cache@v2
with:
cache-directories: ".bin"
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand All @@ -35,7 +41,7 @@ jobs:
run: |
sudo apt-get install gcc-aarch64-linux-gnu
rustup target add aarch64-unknown-linux-gnu
cargo install cargo-zigbuild --version 0.18.0
cargo install cargo-run-bin
cargo zigbuild --release --target aarch64-unknown-linux-gnu
- name: Upload
uses: actions/upload-artifact@v2
Expand All @@ -52,6 +58,9 @@ jobs:
profile: minimal
target: x86_64-apple-darwin
toolchain: stable
- uses: Swatinem/rust-cache@v2
with:
cache-directories: ".bin"
- name: Build
run: cargo build --release --target x86_64-apple-darwin
- name: Upload
Expand All @@ -67,6 +76,9 @@ jobs:
- uses: goto-bus-stop/setup-zig@v2
with:
version: 0.11.0
- uses: Swatinem/rust-cache@v2
with:
cache-directories: ".bin"
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand All @@ -75,7 +87,7 @@ jobs:
- name: Build
run: |
rustup target add aarch64-apple-darwin
cargo install cargo-zigbuild --version 0.18.0
cargo install cargo-run-bin
cargo zigbuild --release --target aarch64-apple-darwin
- name: Upload
uses: actions/upload-artifact@v2
Expand All @@ -92,6 +104,9 @@ jobs:
profile: minimal
toolchain: stable
target: x86_64-pc-windows-msvc
- uses: Swatinem/rust-cache@v2
with:
cache-directories: ".bin"
- name: Build
run: |
cargo build --release --target x86_64-pc-windows-msvc
Expand All @@ -110,6 +125,9 @@ jobs:
profile: minimal
toolchain: stable
target: aarch64-pc-windows-msvc
- uses: Swatinem/rust-cache@v2
with:
cache-directories: ".bin"
- name: Build
run: |
rustup target add aarch64-pc-windows-msvc
Expand Down
2 changes: 2 additions & 0 deletions Cargo.toml
Expand Up @@ -85,6 +85,8 @@ cargo-insta = { version = "1.34.0" }
cargo-llvm-cov = { version = "0.5.25" }
cargo-nextest = { version = "0.9.59", locked = true }
cargo-watch = { version = "8.4.0" }
cargo-xwin = { version = "0.16.2" }
cargo-zigbuild = { version = "0.18.1" }
committed = { version = "1.0.20" }
dprint = { version = "0.40.2" }
git-cliff = { version = "1.3.1" }
Expand Down

0 comments on commit 5687058

Please sign in to comment.