chore: github workflow ubuntu latest, build for x86 musl

This commit is contained in:
Jack Wills
2023-06-03 20:36:15 +00:00
parent 47cda44b82
commit 4fa841e6e7
@@ -5,8 +5,7 @@ on:
- 'v[0-9]+.[0-9]+.[0-9]+' - 'v[0-9]+.[0-9]+.[0-9]+'
jobs: jobs:
deploy: deploy:
# Change this to latest - or ubuntu 20.04? runs-on: ubuntu-latest
runs-on: ubuntu-18.04
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
@@ -36,13 +35,12 @@ jobs:
- name: install cross - name: install cross
run: cargo install cross --git https://github.com/cross-rs/cross run: cargo install cross --git https://github.com/cross-rs/cross
# Build for linux x86_64 # Build for linux x86 musl
# Should this actually build for musl? - name: build x86_64-unknown-linux-musl
- name: build release linux_x86_64 run: cross build --target x86_64-unknown-linux-musl --release
run: cargo build --release
# Compress output into tar # Compress output into tar
- name: compress oxker_linux_x86_64 binary - name: compress aarch64 binary
run: tar -C target/release -czf ./oxker_linux_x86_64.tar.gz oxker 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 # Build for linux aarch64, aka 64 bit pi 4
- name: build aarch64-unknown-linux-musl - name: build aarch64-unknown-linux-musl