Skip to content

Commit

Permalink
chore: github workflow ubuntu latest, build for x86 musl
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjackwills committed Jun 3, 2023
1 parent 47cda44 commit 4fa841e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/create_release_and_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ on:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
deploy:
# Change this to latest - or ubuntu 20.04?
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -36,13 +35,12 @@ jobs:
- name: install cross
run: cargo install cross --git https://github.com/cross-rs/cross

# Build for linux x86_64
# Should this actually build for musl?
- name: build release linux_x86_64
run: cargo build --release
# Build for linux x86 musl
- name: build x86_64-unknown-linux-musl
run: cross build --target x86_64-unknown-linux-musl --release
# Compress output into tar
- name: compress oxker_linux_x86_64 binary
run: tar -C target/release -czf ./oxker_linux_x86_64.tar.gz oxker
- name: compress aarch64 binary
run: tar -C target/x86_64-unknown-linux-musl/release -czf ./oxker_linux_x86_64.tar.gz oxker

# Build for linux aarch64, aka 64 bit pi 4
- name: build aarch64-unknown-linux-musl
Expand Down

0 comments on commit 4fa841e

Please sign in to comment.