Skip to content

Commit

Permalink
try to build on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
x86y committed Jun 23, 2023
1 parent 9d17a42 commit b57ccc4
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ jobs:
matrix:
target:
# - aarch64-apple-darwin
- x86_64-unknown-linux-gnu
# - x86_64-unknown-linux-gnu
- x86_64-pc-windows-gnu
cross: [true]
steps:
- uses: actions/checkout@v3
- name: Check if BQN.Wasm exists
run: file /home/runner/work/beacon/beacon/BQN.wasm
- name: Toolchain
uses: actions-rs/toolchain@v1
with:
Expand All @@ -23,12 +27,22 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get install cmake pkg-config libfreetype6-dev fontconfig libfontconfig libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev
- if: ${{ matrix.cross }}
name: Create Cross.toml
shell: bash
run: |
cat > Cross.toml <<EOF
[build.env]
passthrough = ["BQN_WASM"]
EOF
- name: Cargo Build
uses: actions-rs/cargo@v1
env:
BQN_WASM: /home/runner/work/beacon/beacon/BQN.wasm
with:
use-cross: true
command: build
args: --release --target=${{ matrix.target }}
args: --release --target=${{ matrix.target }} --no-default-features --features=bqnwasm
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit b57ccc4

Please sign in to comment.