clean up build process (#9)

* clean up build process

* more

* more

* add mac

* more

* more

* Update build.rs
This commit is contained in:
Logan McNaughton
2023-10-06 09:41:27 -06:00
committed by GitHub
parent 36c56dacce
commit dfcd0a21d7
7 changed files with 33 additions and 14 deletions
+8
View File
@@ -0,0 +1,8 @@
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "target-cpu=x86-64-v3"]
[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-cpu=x86-64-v3"]
[target.x86_64-apple-darwin]
rustflags = ["-C", "target-cpu=x86-64-v2"]
+20 -6
View File
@@ -19,10 +19,9 @@ jobs:
- name: Update rust
run: |
rustup update
rustup install nightly
- name: Build
run: |
./build_release.sh
cargo build --release -v
- name: Upload file
uses: actions/upload-artifact@v3
with:
@@ -36,16 +35,31 @@ jobs:
with:
submodules: recursive
- name: Update rust
shell: bash
run: |
rustup update
rustup install nightly
- name: Build
shell: bash
run: |
./build_release.sh
cargo build --release -v
- name: Upload file
uses: actions/upload-artifact@v3
with:
name: gopher64-windows
path: target/release/gopher64.exe
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Update rust
run: |
rustup update
- name: Build
run: |
cargo build --release -v
- name: Upload file
uses: actions/upload-artifact@v3
with:
name: gopher64-mac
path: target/release/gopher64
+1 -1
View File
@@ -12,7 +12,7 @@
2. `rustup install nightly`
3. `git clone --recursive https://github.com/gopher64/gopher64.git`
4. `cd gopher64`
5. `./build_release.sh`
5. `cargo build --release`
6. `./target/release/gopher64 /path/to/rom.z64`
## controls
+2 -1
View File
@@ -2,6 +2,7 @@ fn main() {
let mut build = cc::Build::new();
build
.cpp(true)
.std("c++17")
.file("parallel-rdp/parallel-rdp-standalone/parallel-rdp/command_ring.cpp")
.file("parallel-rdp/parallel-rdp-standalone/parallel-rdp/rdp_device.cpp")
.file("parallel-rdp/parallel-rdp-standalone/parallel-rdp/rdp_dump_write.cpp")
@@ -51,7 +52,7 @@ fn main() {
{
build.flag("-DVK_USE_PLATFORM_WIN32_KHR");
}
#[cfg(target_os = "linux")]
#[cfg(any(target_os = "linux", target_os = "macos"))]
{
build
.flag("-Wno-missing-field-initializers")
-3
View File
@@ -1,3 +0,0 @@
#!/usr/bin/env bash
RUSTFLAGS='-C target-cpu=x86-64-v3' cargo +nightly build
-3
View File
@@ -1,3 +0,0 @@
#!/usr/bin/env bash
RUSTFLAGS='-C target-cpu=x86-64-v3' cargo +nightly build --release
+2
View File
@@ -0,0 +1,2 @@
[toolchain]
channel = "nightly"