Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
x86y committed Jun 25, 2023
1 parent c0605a6 commit bd256e6
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Release
on: [push, pull_request]
on: [push]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_TERM_COLOR: always
Expand All @@ -18,17 +18,22 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
build/obj
build/obj2
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Rust Windows target
run: rustup update && rustup target add x86_64-pc-windows-gnu
- name: Build bqn shared lib and wasm file
run: |
rustup update && rustup target add x86_64-pc-windows-gnu
sudo apt-get update
sudo apt-get install clang llvm
sudo apt-get install binutils-mingw-w64 mingw-w64
- name: Build bqn shared lib and wasm file
run: |
git clone https://github.com/dzaima/CBQN
cd CBQN
FFI=0 make shared-o3 notui=1
FFI=0 make wasi-reactor-o3 notui=1
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-20/wasi-sdk-20.0-linux.tar.gz
tar xvf wasi-sdk-20.0-linux.tar.gz
FFI=0 make wasi-reactor-o3 notui=1 CC=./wasi-sdk-20.0/bin/clang
mv libcbqn.so BQN.wasm ../
- name: Build Linux
run: |
Expand Down Expand Up @@ -56,6 +61,8 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
build/obj
build/obj2
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Rust ARM target
run: |
Expand Down

0 comments on commit bd256e6

Please sign in to comment.