This repository has been archived by the owner on Oct 17, 2021. It is now read-only.
forked from tgstation/rust-g
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from AffectedArc07/update-to-tg
Updates RUSTG to TG's latest
- Loading branch information
Showing
26 changed files
with
3,830 additions
and
109 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: rust-g | ||
on: [push] | ||
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 | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
toolchain: stable | ||
command: build | ||
args: --target i686-pc-windows-msvc --release | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: rust_g.dll | ||
path: target/i686-pc-windows-msvc/release/rust_g.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 g++-multilib zlib1g-dev:i386 libssl-dev:i386 pkg-config:i386 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: i686-unknown-linux-gnu | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
toolchain: stable | ||
command: build | ||
args: --target i686-unknown-linux-gnu --release | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: rust_g | ||
path: target/i686-unknown-linux-gnu/release/librust_g.so |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
/target | ||
**/*.rs.bk | ||
Cargo.lock |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
language: rust | ||
cache: | ||
cargo: true | ||
directories: | ||
- /home/travis/BYOND/ | ||
|
||
addons: | ||
apt: | ||
- g++-multilib | ||
- libssl-dev:i386 | ||
|
||
matrix: | ||
include: | ||
- name: "Default Features" | ||
env: CARGO_FLAGS= | ||
- name: "All Features" | ||
env: CARGO_FLAGS=--all-features | ||
|
||
install: | ||
- env BYOND_MAJOR=513 BYOND_MINOR=1521 ./scripts/install_byond.sh | ||
- export BYOND_BIN=/home/travis/BYOND/byond/bin | ||
- rustup target add i686-unknown-linux-gnu | ||
- export PKG_CONFIG_ALLOW_CROSS=1 | ||
|
||
script: | ||
- cargo build --target i686-unknown-linux-gnu --verbose --all --release $CARGO_FLAGS || travis_terminate 1 | ||
- cargo test --target i686-unknown-linux-gnu --verbose --all --release $CARGO_FLAGS |
Oops, something went wrong.