mirror of
https://github.com/gopher64/gopher64.git
synced 2026-07-11 01:25:20 +02:00
clean up build process (#9)
* clean up build process * more * more * add mac * more * more * Update build.rs
This commit is contained in:
@@ -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"]
|
||||
@@ -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
|
||||
|
||||
@@ -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,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")
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
RUSTFLAGS='-C target-cpu=x86-64-v3' cargo +nightly build
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
RUSTFLAGS='-C target-cpu=x86-64-v3' cargo +nightly build --release
|
||||
@@ -0,0 +1,2 @@
|
||||
[toolchain]
|
||||
channel = "nightly"
|
||||
Reference in New Issue
Block a user