diff --git a/.cargo/config.toml b/.cargo/config.toml index 27860851..0b2d8b48 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,8 +1,2 @@ -[target.x86_64-unknown-linux-gnu] +[build] 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"] diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3e16b53a..980c7066 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,23 +48,24 @@ jobs: with: name: gopher64-windows path: target/release/gopher64.exe -# build-macos: -# runs-on: macos-13 -# steps: -# - uses: actions/checkout@v4 -# with: -# submodules: recursive -# - name: Install sdl2 headers -# run: | -# brew install sdl2 -# - name: Update rust -# run: | -# rustup update -# - name: Build -# run: | -# cargo build --release -v -# - name: Upload file -# uses: actions/upload-artifact@v4 -# with: -# name: gopher64-mac -# path: target/release/gopher64 + + build-macos: + runs-on: macos-13 + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + - name: Install sdl2 headers + run: | + brew install sdl2 + - name: Update rust + run: | + rustup update + - name: Build + run: | + cargo build --release -v + - name: Upload file + uses: actions/upload-artifact@v4 + with: + name: gopher64-mac + path: target/release/gopher64