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

Add x64 build #12

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
28 changes: 21 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@ on:
pull_request:
branches:
- master
workflow_dispatch:

jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: ilammy/setup-nasm@v1

- uses: dtolnay/rust-toolchain@stable
with:
targets: i686-pc-windows-msvc
targets: i686-pc-windows-msvc, x86_64-pc-windows-msvc
components: rustfmt, clippy

- uses: Swatinem/rust-cache@v2
Expand All @@ -25,17 +28,28 @@ jobs:
- name: Rustfmt
run: cargo fmt -- --check

- name: Build (release) (default features)
run: cargo build --target i686-pc-windows-msvc --locked --release
- name: Build (release) (all features)
run: cargo build --target i686-pc-windows-msvc --features all --locked --release

- name: Build 64 (release) (all features)
run: cargo build --target x86_64-pc-windows-msvc --features all --locked --release

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Windows Build
path: |
target/i686-pc-windows-msvc/release/rust_g.dll
target/i686-pc-windows-msvc/release/rust_g.pdb
target/rust_g.dm

- uses: actions/upload-artifact@v4
with:
name: Windows Build 64
path: |
target/x86_64-pc-windows-msvc/release/rust_g.dll
target/x86_64-pc-windows-msvc/release/rust_g.pdb
target/rust_g.dm

build-linux:
runs-on: ubuntu-latest
env:
Expand Down Expand Up @@ -69,10 +83,10 @@ jobs:
env:
BYOND_BIN: /home/runner/BYOND/byond/bin

- name: Build (release) (default features)
run: cargo build --target i686-unknown-linux-gnu --locked --release
- name: Build (release) (all features)
run: cargo build --target i686-unknown-linux-gnu --locked --features all --release

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Linux Build
path: |
Expand Down
Loading