Skip to content

Commit

Permalink
debug osx
Browse files Browse the repository at this point in the history
  • Loading branch information
milesgranger committed Sep 21, 2024
1 parent c133b41 commit 081edbf
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,30 @@ jobs:
# - name: Test
# run: cross test --target ${{ matrix.target }} --release

test-wasm32-emscripten:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
build: [static, shared]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
# test-wasm32-emscripten:
# runs-on: ubuntu-latest
# strategy:
# fail-fast: false
# matrix:
# build: [static, shared]
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: recursive

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
target: wasm32-unknown-emscripten
# - name: Install Rust toolchain
# uses: dtolnay/rust-toolchain@stable
# with:
# target: wasm32-unknown-emscripten

- name: Install build deps
run: sudo apt install nasm gcc-multilib
# - name: Install build deps
# run: sudo apt install nasm gcc-multilib

- name: Install Emscripten
uses: mymindstorm/setup-emsdk@v14
# - name: Install Emscripten
# uses: mymindstorm/setup-emsdk@v14

- name: Build
run: cargo build --target wasm32-unknown-emscripten --no-default-features --features ${{ matrix.build }}
# - name: Build
# run: cargo build --target wasm32-unknown-emscripten --no-default-features --features ${{ matrix.build }}

test-native:
runs-on: ${{ matrix.os }}
Expand All @@ -66,8 +66,8 @@ jobs:
os:
- macos-13 # x86_64
- macos-14 # M1
- windows-latest
- ubuntu-latest
# - windows-latest
# - ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
Expand Down
10 changes: 5 additions & 5 deletions isal-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ fn main() {
if target.starts_with("wasm32") {
configure_args.push("CC=emcc".to_string());
}
if profile == "release" {
configure_args.push("CFLAGS=-g -O3".to_string());
} else {
configure_args.push("CFLAGS=-g -O1".to_string());
}
// if profile == "release" {
// configure_args.push("CFLAGS=-g -O3".to_string());
// } else {
// configure_args.push("CFLAGS=-g -O1".to_string());
// }

let status = Command::new("./configure")
.args(&configure_args)
Expand Down

0 comments on commit 081edbf

Please sign in to comment.