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 b04b093
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ jobs:
matrix:
target:
# - aarch64-apple-darwin
- x86_64-unknown-linux-gnu
# - x86_64-unknown-linux-gnu
- x86_64-pc-windows-gnu
steps:
- uses: actions/checkout@v3
- name: Toolchain
Expand All @@ -23,12 +24,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: "${{ github.workspace }}/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 b04b093

Please sign in to comment.