Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

Commit

Permalink
Merge pull request #3 from AffectedArc07/update-to-tg
Browse files Browse the repository at this point in the history
Updates RUSTG to TG's latest
  • Loading branch information
variableundefined authored Oct 26, 2020
2 parents 4b946bb + 6ca76e5 commit 10c7643
Show file tree
Hide file tree
Showing 26 changed files with 3,830 additions and 109 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/rust.yml
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
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/target
**/*.rs.bk
Cargo.lock
27 changes: 27 additions & 0 deletions .travis.yml
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
Loading

0 comments on commit 10c7643

Please sign in to comment.