Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small improvements for before 1.0 #105

Merged
merged 6 commits into from
Jul 23, 2022
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,62 +11,78 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1

- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: i686-pc-windows-msvc
components: rustfmt, clippy

- uses: Swatinem/rust-cache@v2

- name: Clippy (all features)
uses: actions-rs/cargo@v1
with:
toolchain: stable
command: clippy
args: --target i686-pc-windows-msvc --all-features --locked -- -D warnings

- name: Rustfmt
uses: actions-rs/cargo@v1
with:
toolchain: stable
command: fmt
args: -- --check

- name: Build (release) (default features)
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:
BYOND_MAJOR: 513
BYOND_MINOR: 1536
BYOND_MAJOR: 514
BYOND_MINOR: 1585
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
./scripts/install_byond.sh

- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: i686-unknown-linux-gnu

- uses: Swatinem/rust-cache@v2

- name: Check (all features)
uses: actions-rs/cargo@v1
with:
toolchain: stable
command: check
args: --target i686-unknown-linux-gnu --all-features

- name: Build (Debug) (all features)
uses: actions-rs/cargo@v1
with:
toolchain: stable
command: build
args: --target i686-unknown-linux-gnu --all-features

- name: Run tests (all features)
uses: actions-rs/cargo@v1
with:
Expand All @@ -75,12 +91,14 @@ jobs:
args: --target i686-unknown-linux-gnu --all-features
env:
BYOND_BIN: /home/runner/BYOND/byond/bin

- name: Build (release) (default features)
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
Expand Down
4 changes: 2 additions & 2 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 LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 Bjorn Neergaard, /tg/station contributors
Copyright (c) 2022 Bjorn Neergaard, rust-g contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
rust-g (pronounced rusty-g) is a library which offloads certain expensive or
difficult tasks from BYOND.

This library is currently used in the [tgstation] codebase, and is required for
This library is currently used in the [/tg/station] codebase, and is required for
it to run. A pre-compiled DLL version can be found in the repo root, but you
can build your own from this repo at your preference. Builds can also be found
on the [releases page].
Expand Down Expand Up @@ -178,7 +178,7 @@ open("rust_g", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOTD
If you're still having problems, ask in the [Coderbus Discord]'s
`#tooling-questions` channel.

You can also try [tgstation]'s IRC, `#coderbus` on Rizon, but it is usually
You can also try [/tg/station]'s IRC, `#coderbus` on Rizon, but it is usually
ZeWaka marked this conversation as resolved.
Show resolved Hide resolved
quiet.

[/tg/station]: https://github.com/tgstation/tgstation
Expand Down