Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
rust_version: [stable]
platform:
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest }
features:
- { args: --no-default-features, key: no-default }
- { args: --all-features, key: all }

runs-on: ${{ matrix.platform.os }}

Expand All @@ -35,13 +38,15 @@ jobs:
sudo apt-get install -y webkit2gtk-4.1

- uses: Swatinem/rust-cache@v2
with:
save-if: ${{ matrix.features.key == 'all' }}

- name: Cargo fmt
run: cargo fmt --all -- --check

- name: build javascriptcore
run: cargo build --target ${{ matrix.platform.target }}
run: cargo build --target ${{ matrix.platform.target }} ${{ matrix.features.args }}

- name: build and run tests
run: cargo test --verbose --target ${{ matrix.platform.target }}
run: cargo test --verbose --target ${{ matrix.platform.target }} ${{ matrix.features.args }}