Skip to content

Commit 5650ce6

Browse files
author
Chris
committed
added updates to builder for osx
1 parent 075c205 commit 5650ce6

File tree

3 files changed

+24
-9
lines changed

3 files changed

+24
-9
lines changed

.github/workflows/release.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,23 @@ permissions:
1010

1111
jobs:
1212
build:
13-
runs-on: ubuntu-latest
1413
strategy:
1514
matrix:
16-
target:
17-
- x86_64-unknown-linux-gnu
18-
- aarch64-unknown-linux-gnu
19-
- x86_64-apple-darwin
20-
- aarch64-apple-darwin
15+
include:
16+
- target: x86_64-unknown-linux-gnu
17+
os: ubuntu-latest
18+
use_cross: true
19+
- target: aarch64-unknown-linux-gnu
20+
os: ubuntu-latest
21+
use_cross: true
22+
- target: x86_64-apple-darwin
23+
os: macos-latest
24+
use_cross: false
25+
- target: aarch64-apple-darwin
26+
os: macos-latest
27+
use_cross: false
28+
29+
runs-on: ${{ matrix.os }}
2130

2231
steps:
2332
- uses: actions/checkout@v4
@@ -27,12 +36,18 @@ jobs:
2736
targets: ${{ matrix.target }}
2837

2938
- uses: taiki-e/install-action@v2
39+
if: matrix.use_cross
3040
with:
3141
tool: cross
3242

33-
- name: Build
43+
- name: Build (cross)
44+
if: matrix.use_cross
3445
run: cross build --release --target ${{ matrix.target }}
3546

47+
- name: Build (native)
48+
if: ${{ !matrix.use_cross }}
49+
run: cargo build --release --target ${{ matrix.target }}
50+
3651
- name: Package
3752
shell: bash
3853
run: |

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "canine-cli"
3-
version = "0.1.2"
3+
version = "0.1.4"
44
edition = "2024"
55

66
[dependencies]

0 commit comments

Comments
 (0)