Infected errors with cancer (emojis) #40
Workflow file for this run
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: | |
workflow_dispatch: | |
push: | |
branches: [ "master" ] | |
paths-ignore: | |
- '**.yml' | |
pull_request: | |
branches: [ "master" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test-x86_64-unknown-linux-gnu: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install SDL2 | |
run: | | |
sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse" | |
sudo apt-get update -y -qq | |
sudo apt-get install libsdl2-dev | |
- uses: actions/checkout@v4 | |
- name: Run tests | |
run: cargo test gcc_build --verbose -- --nocapture | |
build-release-x86_64-unknown-linux-gnu: | |
runs-on: self-hosted | |
needs: test-x86_64-unknown-linux-gnu | |
steps: | |
- uses: actions/checkout@v4 | |
- name: build | |
run: cargo build --verbose --target x86_64-unknown-linux-gnu --release | |
- name: Update indev release | |
run: gh release upload indev ./target/x86_64-unknown-linux-gnu/release/numake --clobber | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: 'release-x86_64-unknown-linux-gnu' | |
path: 'target/x86_64-unknown-linux-gnu/release/numake' | |
build-debug-x86_64-unknown-linux-gnu: | |
runs-on: self-hosted | |
needs: test-x86_64-unknown-linux-gnu | |
steps: | |
- uses: actions/checkout@v4 | |
- name: build | |
run: cargo build --verbose --target x86_64-unknown-linux-gnu | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: 'debug-x86_64-unknown-linux-gnu' | |
path: 'target/x86_64-unknown-linux-gnu/debug' | |
test-x86_64-pc-windows-gnu: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install & use stable-x86_64-pc-windows-gnu toolchain | |
run: | | |
rustup toolchain install stable-x86_64-pc-windows-gnu | |
rustup default stable-x86_64-pc-windows-gnu | |
- name: Run tests | |
run: cargo test mingw_build --verbose -- --nocapture | |
build-release-x86_64-pc-windows-gnu: | |
runs-on: self-hosted | |
needs: test-x86_64-pc-windows-gnu | |
steps: | |
- uses: actions/checkout@v4 | |
- name: build | |
run: cargo build --verbose --target x86_64-pc-windows-gnu --release | |
- name: Update indev release | |
run: gh release upload indev ./target/x86_64-pc-windows-gnu/release/numake.exe --clobber | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: 'release-x86_64-pc-windows-gnu' | |
path: 'target/x86_64-pc-windows-gnu/release/numake.exe' | |
build-debug-x86_64-pc-windows-gnu: | |
runs-on: self-hosted | |
needs: test-x86_64-pc-windows-gnu | |
steps: | |
- uses: actions/checkout@v4 | |
- name: build | |
run: cargo build --verbose --target x86_64-pc-windows-gnu | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: 'debug-x86_64-pc-windows-gnu' | |
path: 'target/x86_64-pc-windows-gnu/debug' |