Skip to content

mend

mend #221

Workflow file for this run

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