Update rust.yml #30
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: Rust | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup | |
run: sudo apt-get install libudev-dev && rustup target add x86_64-pc-windows-gnu && sudo apt-get install gcc-mingw-w64-x86-64 | |
- name: Build Linux | |
run: cd "Rust Middleware" && cargo build --release --verbose | |
- name: Build Windows | |
run: cd "Rust Middleware" && cargo build --release --target x86_64-pc-windows-gnu --verbose | |
- name: CWD | |
run: cwd | |
- name: Prepare Upload (create build folder) | |
run: mkdir "/home/runner/work/Calliope-Radio-Scanner/Calliope-Radio-Scanner/build" | |
- name: Prepare Upload (copy binaries) | |
run: mv "/home/runner/work/Calliope-Radio-Scanner/Calliope-Radio-Scanner/Rust Middleware/target/release/crs" "/home/runner/work/Calliope-Radio-Scanner/Calliope-Radio-Scanner/Rust Middleware/target/x86_64-pc-windows-gnu/release/crs.exe" "/home/runner/work/Calliope-Radio-Scanner/Calliope-Radio-Scanner/build/" | |
- name: Upload Build Artifacts | |
uses: actions/[email protected] | |
with: | |
name: "Builds" | |
path: "/home/runner/work/Calliope-Radio-Scanner/Calliope-Radio-Scanner/build/*" |