This repository has been archived by the owner on Mar 4, 2024. It is now read-only.
Merge pull request #5 from Isible/rewrite #12
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" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: executable-linux | |
path: target/debug/nexus | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: executable-windows | |
path: target/debug/nexus.exe |