Skip to content

Commit

Permalink
Merge pull request #10 from Crossedfall/patch-1
Browse files Browse the repository at this point in the history
Recreates our build action
  • Loading branch information
Crossedfall authored Sep 29, 2022
2 parents b270afb + 4ef53a1 commit d2af360
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 1 deletion.
56 changes: 56 additions & 0 deletions .github/workflows/auxmos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: auxmos
on:
push:
branches:
- master
jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: i686-pc-windows-msvc
- name: Build auxmos
uses: actions-rs/cargo@v1
with:
toolchain: stable
command: build
args: --target i686-pc-windows-msvc --release --features trit_fire_hook,plasma_fire_hook,generic_fire_hook
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: auxmos.dll
path: target/i686-pc-windows-msvc/release/auxmos.dll
build-linux:
runs-on: ubuntu-latest
env:
PKG_CONFIG_ALLOW_CROSS: 1
steps:
- uses: actions/checkout@v1
- run: |
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install build-essential g++-multilib libc6-i386 libstdc++6:i386
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: i686-unknown-linux-gnu
- name: Check
uses: actions-rs/cargo@v1
with:
toolchain: stable
command: check
args: --target i686-unknown-linux-gnu
- name: Build auxmos
uses: actions-rs/cargo@v1
with:
toolchain: stable
command: build
args: --target i686-unknown-linux-gnu --release --features trit_fire_hook,plasma_fire_hook,generic_fire_hook
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: libauxmos.so
path: target/i686-unknown-linux-gnu/release/libauxmos.so
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ Rust-based atmospherics for Space Station 13 using [auxtools](https://github.com

The compiled binary on Citadel is compiled for Citadel's CPU, which therefore means that it uses [AVX2 fused-multiply-accumulate](https://en.wikipedia.org/wiki/Advanced_Vector_Extensions#Advanced_Vector_Extensions_2). Yes, really. If you have issues, compile it yourself, via `cargo rustc --package auxmos --target=i686-pc-windows-msvc --release --features "all_reaction_hooks katmos" -- -C target-cpu=native`. It has to be 32-bit, mind.

The `master` branch is to be considered unstable; use the releases if you want to make sure it actually works. [The latest release is here](https://github.com/Putnam3145/auxmos/releases/latest).
---

**IMPORTANT**: For beecode, `--features "all_reaction_hooks"` will cause problems such as crashing, due to Bee having different fusion code. Replacing that argument with `--features trit_fire_hook,plasma_fire_hook,generic_fire_hook` will prevent auxtools from attempting to hook into fusion procs.

The `master` branch is to be considered unstable; use the releases if you want to make sure it actually works. [The latest release is here](https://github.com/BeeStation/auxmos/releases/latest).

0 comments on commit d2af360

Please sign in to comment.