Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jgilchrist committed Nov 24, 2024
1 parent 6d28bab commit 994e4bd
Showing 1 changed file with 6 additions and 65 deletions.
71 changes: 6 additions & 65 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,43 +32,6 @@ jobs:
echo "Engine version: $version"
echo "version=$version" >> "$GITHUB_OUTPUT"
build-linux:
runs-on: ubuntu-latest
needs: [metadata]

strategy:
matrix:
include:
- exec_postfix: "x86_64-v4"
rustflags: "-Ctarget-feature=+crt-static,-bmi2 -Ctarget-cpu=x86-64-v4"
- exec_postfix: "x86_64-v3"
rustflags: "-Ctarget-feature=+crt-static,-bmi2 -Ctarget-cpu=x86-64-v3"
- exec_postfix: "x86_64-v2"
rustflags: "-Ctarget-feature=+crt-static -Ctarget-cpu=x86-64-v2"
- exec_postfix: "x86_64-v1"
rustflags: "-Ctarget-feature=+crt-static"

steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: sudo apt-get install -y musl-tools

- name: Build
env:
RUSTFLAGS: '${{ matrix.rustflags }}'
run: |
rustup override set ${{ needs.metadata.outputs.rust-version }}
rustup target add x86_64-unknown-linux-musl
cargo build --release --features release --target x86_64-unknown-linux-musl
mv target/x86_64-unknown-linux-musl/release/engine tcheran-${{ needs.metadata.outputs.engine-version }}-linux-${{ matrix.exec_postfix }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: tcheran-linux-${{ matrix.exec_postfix }}
path: tcheran-${{ needs.metadata.outputs.engine-version }}-linux-${{ matrix.exec_postfix }}

build-windows:
runs-on: windows-latest
needs: [metadata]
Expand All @@ -78,12 +41,12 @@ jobs:
include:
- exec_postfix: "x86_64-v4"
rustflags: "-Ctarget-feature=+crt-static,-bmi2 -Ctarget-cpu=x86-64-v4"
- exec_postfix: "x86_64-v3"
rustflags: "-Ctarget-feature=+crt-static,-bmi2 -Ctarget-cpu=x86-64-v3"
- exec_postfix: "x86_64-v2"
rustflags: "-Ctarget-feature=+crt-static -Ctarget-cpu=x86-64-v2"
- exec_postfix: "x86_64-v1"
rustflags: "-Ctarget-feature=+crt-static"
# - exec_postfix: "x86_64-v3"
# rustflags: "-Ctarget-feature=+crt-static,-bmi2 -Ctarget-cpu=x86-64-v3"
# - exec_postfix: "x86_64-v2"
# rustflags: "-Ctarget-feature=+crt-static -Ctarget-cpu=x86-64-v2"
# - exec_postfix: "x86_64-v1"
# rustflags: "-Ctarget-feature=+crt-static"

steps:
- uses: actions/checkout@v4
Expand All @@ -102,25 +65,3 @@ jobs:
with:
name: tcheran-windows-${{ matrix.exec_postfix }}
path: tcheran-${{ needs.metadata.outputs.engine-version }}-windows-${{ matrix.exec_postfix }}.exe

build-macos:
runs-on: macos-14
needs: [metadata]

steps:
- uses: actions/checkout@v4

- name: Build
env:
RUSTFLAGS: '${{ matrix.rustflags }}'
run: |
rustup override set ${{ needs.metadata.outputs.rust-version }}
rustup target add aarch64-apple-darwin
cargo build --release --features release --target aarch64-apple-darwin
mv target/aarch64-apple-darwin/release/engine tcheran-${{ needs.metadata.outputs.engine-version }}-macos
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: tcheran-macos
path: tcheran-${{ needs.metadata.outputs.engine-version }}-macos

0 comments on commit 994e4bd

Please sign in to comment.