99 CARGO_TERM_COLOR : always
1010
1111jobs :
12- macOS :
12+ macos :
1313 runs-on : macos-11.0
1414
1515 steps :
4040 name : librespot-mac
4141 path : releases/
4242
43- Linux :
43+ linux :
44+ runs-on : ubuntu-20.04
45+
46+ steps :
47+ - name : Checkout
48+ uses : actions/checkout@v3
49+
50+ - name : Prepare build environment
51+ run : |
52+ rustup target add x86_64-unknown-linux-gnu
53+ rustup target add i686-unknown-linux-gnu
54+ curl -L https://github.com/cross-rs/cross/releases/download/v0.2.5/cross-x86_64-unknown-linux-gnu.tar.gz | tar xvz
55+ mkdir -p releases/linux
56+
57+ - name : Build x86_64
58+ run : |
59+ cargo build --release --target=x86_64-unknown-linux-gnu
60+ cp target/x86_64-unknown-linux-gnu/release/librespot releases/linux/librespot-linux-x86_64
61+ chmod +x releases/linux/librespot-linux-x86_64
62+
63+ - name : Build ARMv8
64+ run : |
65+ ./cross build --release --target=aarch64-unknown-linux-gnu
66+ cp target/aarch64-unknown-linux-gnu/release/librespot releases/linux/librespot-linux-aarch64
67+ chmod +x releases/linux/librespot-linux-aarch64
68+
69+ - name : Upload artifacts
70+ uses : actions/upload-artifact@v3
71+ with :
72+ name : librespot-linux
73+ path : releases/
74+
75+ linux-musl :
4476 runs-on : ubuntu-20.04
4577
4678 steps :
@@ -64,16 +96,16 @@ jobs:
6496 run : |
6597 cargo build --release --target=x86_64-unknown-linux-musl
6698 cp target/x86_64-unknown-linux-musl/release/librespot releases/linux/librespot-linux-x86_64
67- chmod +x releases/linux/librespot-linux-x86_64
99+ chmod +x releases/linux/librespot-linux-musl- x86_64
68100
69101 - name : Build ARMv8
70102 run : |
71103 ./cross build --release --target=aarch64-unknown-linux-musl
72104 cp target/aarch64-unknown-linux-musl/release/librespot releases/linux/librespot-linux-aarch64
73- chmod +x releases/linux/librespot-linux-aarch64
105+ chmod +x releases/linux/librespot-linux-musl- aarch64
74106
75107 - name : Upload artifacts
76108 uses : actions/upload-artifact@v3
77109 with :
78- name : librespot-linux
110+ name : librespot-linux-musl
79111 path : releases/
0 commit comments