Skip to content

Commit 6b22868

Browse files
Wip: build pipeline
1 parent 36e5bba commit 6b22868

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,19 @@ jobs:
4141
toolchain: stable
4242
targets: ${{ matrix.target }}
4343

44-
- name: Setup dependencies (Ubuntu)
45-
if: matrix.os == 'ubuntu-latest'
46-
run: |
47-
sudo apt-get -qq update
48-
sudo apt-get -qq install musl-dev musl-tools pkg-config make
44+
# - name: Setup dependencies (Ubuntu)
45+
# if: matrix.os == 'ubuntu-latest'
46+
# run: |
47+
# sudo apt-get -qq update
48+
# sudo apt-get -qq install musl-dev musl-tools pkg-config make
4949

50-
- name: Run build
51-
run: cargo build --release --locked --target ${{ matrix.target }}
50+
- name: Build binary
51+
uses: houseabsolute/actions-rust-cross@v0
52+
with:
53+
command: build
54+
target: ${{ matrix.target }}
55+
args: "--locked --release"
56+
strip: true
5257

5358
- name: Run the binary
5459
run: ./target/${{ matrix.target }}/release/gitrack -p /tmp

0 commit comments

Comments
 (0)