Also install musl toolchain #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [push, pull_request] | |
jobs: | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Build | |
run: cargo build --release | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: moonlight-installer-windows | |
path: target/release/moonlight-installer.exe | |
build-linux: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: x86_64-unknown-linux-musl | |
- uses: Swatinem/rust-cache@v2 | |
- name: Download appimcagetool | |
run: | | |
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-$(uname -m).AppImage -O ./appimagetool | |
chmod +x ./appimagetool | |
- name: Install musl-gcc | |
run: sudo apt-get install -y musl-tools | |
- name: Install cargo-appimage | |
run: cargo install cargo-appimage | |
- name: Build | |
run: ./build-linux.sh | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: moonlight-installer-linux | |
path: ./target/appimage/moonlight-installer.AppImage |