Skip to content

Commit

Permalink
Merge branch 'Putnam3145:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
ike709 authored Aug 17, 2021
2 parents 59a91bb + bfd6b69 commit c00f62a
Show file tree
Hide file tree
Showing 10 changed files with 267 additions and 175 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Linux build
on:
push:
branches: [master]
jobs:
linux-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: i686-unknown-linux-gnu
override: true

- name: Install g++-multilib
run: |
sudo apt update
sudo apt install g++-multilib -y
- name: Build auxmos
run: cargo build --target=i686-unknown-linux-gnu --release --features "all_reaction_hooks"
- uses: actions/upload-artifact@v2
with:
name: Linux compile
path: target/i686-unknown-linux-gnu/release/libauxmos.*
19 changes: 19 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Check compile
on: pull_request
jobs:
linux-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: i686-unknown-linux-gnu
override: true

- name: Install g++-multilib
run: |
sudo apt update
sudo apt install g++-multilib -y
- name: Check auxmos build
run: cargo check --target=i686-unknown-linux-gnu --release --features "all_reaction_hooks monstermos explosive_decompression"
118 changes: 61 additions & 57 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ rayon = "1.5.0"
float-ord = "0.2.0"
crossbeam = "0.8.0"
flume = "0.10.5"
coarsetime = "0.1.16"
parking_lot = "0.11.1"
fxhash = "0.2.1"
nonmax = "0.5.0"
indexmap = "1.7.0"

[dependencies.dashmap]
version = "4.0.2"
Expand Down
2 changes: 1 addition & 1 deletion src/gas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fn unregister_mix(i: u32) {

#[init(partial)]
fn _init_gas_mixtures() -> Result<(), String> {
*GAS_MIXTURES.write() = Some(Vec::with_capacity(120_000));
*GAS_MIXTURES.write() = Some(Vec::with_capacity(240_000));
*NEXT_GAS_IDS.write() = Some(Vec::with_capacity(2000));
Ok(())
}
Expand Down
Loading

0 comments on commit c00f62a

Please sign in to comment.