Skip to content

Commit

Permalink
Add x64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimach committed Apr 14, 2024
1 parent b92fb7a commit 9d01c5f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- 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 @@ -31,6 +31,9 @@ jobs:
- 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@v4
with:
name: Windows Build
Expand All @@ -39,6 +42,14 @@ jobs:
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
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,3 @@ pub mod unzip;
pub mod url;
#[cfg(feature = "worleynoise")]
pub mod worleynoise;

#[cfg(not(target_pointer_width = "32"))]
compile_error!("rust-g must be compiled for a 32-bit target");

0 comments on commit 9d01c5f

Please sign in to comment.