mend #221
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: [ "**" ] | |
pull_request: | |
branches: [ "**" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run tests | |
run: | | |
cd lang | |
cargo test --verbose | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build for Linux | |
run: | | |
cd lang | |
cargo build --release --verbose | |
- name: Setup for Windows | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y mingw-w64 | |
rustup toolchain install nightly | |
rustup default nightly | |
rustup target add x86_64-pc-windows-gnu | |
- name: Build for Windows | |
run: | | |
cd lang | |
cargo build --release --verbose --target x86_64-pc-windows-gnu | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: binaries | |
path: | | |
lang/target/x86_64-pc-windows-gnu/release/modu.exe | |
lang/target/release/modu |