Skip to content

IconForge: GAGS (3.1.2) #56

IconForge: GAGS (3.1.2)

IconForge: GAGS (3.1.2) #56

Workflow file for this run

name: rust-g
on:
push:
branches:
- current-bee
pull_request:
branches:
- current-bee
jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: i686-pc-windows-msvc
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Clippy (all features)
continue-on-error: true
run: cargo clippy --target i686-pc-windows-msvc --features all --locked -- -D warnings
- name: Rustfmt
continue-on-error: true
run: cargo fmt -- --check
- name: Build (release) (all features)
run: cargo build --target i686-pc-windows-msvc --locked --release --features all
- uses: actions/upload-artifact@v3
with:
name: Windows Build (All Features)
path: |
target/i686-pc-windows-msvc/release/rust_g.dll
target/i686-pc-windows-msvc/release/rust_g.pdb
target/rust_g.dm
- name: Build (release) (default features)
run: cargo build --target i686-pc-windows-msvc --locked --release
- uses: actions/upload-artifact@v3
with:
name: Windows Build (Default Features)
path: |
target/i686-pc-windows-msvc/release/rust_g.dll
target/i686-pc-windows-msvc/release/rust_g.pdb
target/rust_g.dm
build-linux:
runs-on: ubuntu-20.04
env:
BYOND_MAJOR: 513
BYOND_MINOR: 1521
PKG_CONFIG_ALLOW_CROSS: 1
steps:
- uses: actions/checkout@v4
- run: |
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libgcc-s1:i386 g++-multilib zlib1g-dev:i386
./scripts/install_byond.sh
- uses: dtolnay/rust-toolchain@stable
with:
targets: i686-unknown-linux-gnu
- uses: Swatinem/rust-cache@v2
- name: Check (all features)
continue-on-error: true
run: cargo check --target i686-unknown-linux-gnu --locked --features all
- name: Build (debug) (all features)
continue-on-error: true
run: cargo build --target i686-unknown-linux-gnu --locked --features all
- name: Run tests (all features)
continue-on-error: true
run: cargo test --target i686-unknown-linux-gnu --locked --features all
env:
BYOND_BIN: /home/runner/BYOND/byond/bin
- name: Build (release) (all features)
run: cargo build --target i686-unknown-linux-gnu --locked --release --features all
- uses: actions/upload-artifact@v3
with:
name: Linux Build (All Features)
path: |
target/i686-unknown-linux-gnu/release/librust_g.so
target/rust_g.dm
- name: Build (release) (default features)
run: cargo build --target i686-unknown-linux-gnu --locked --release
- uses: actions/upload-artifact@v3
with:
name: Linux Build (Default Features)
path: |
target/i686-unknown-linux-gnu/release/librust_g.so
target/rust_g.dm