-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Amjad Alsharafi <[email protected]>
- Loading branch information
Showing
1 changed file
with
27 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,16 +18,18 @@ jobs: | |
steps: | ||
- name: Download apt packages | ||
run: | | ||
sudo apt-get update -y && sudo apt-get install -y libsfml-dev libcsfml-dev libasound2-dev libgtk-3-dev libatk1.0-dev libpango1.0-dev libudev-dev | ||
sudo apt-get update -y && sudo apt-get install -y libasound2-dev libudev-dev | ||
- name: Install cargo-tarpaulin | ||
uses: actions-rs/[email protected] | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
crate: cargo-tarpaulin | ||
version: latest | ||
use-tool-cache: true | ||
profile: minimal | ||
toolchain: nightly | ||
override: true | ||
components: llvm-tools-preview | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
|
||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions-rs/audit-check@v1 | ||
with: | ||
|
@@ -36,18 +38,21 @@ jobs: | |
- name: Build | ||
run: cargo build --verbose | ||
|
||
- name: Run test cargo-tarpaulin | ||
run: cargo tarpaulin -t 300 --workspace -e nes_ui_native_windows nes_ui_sfml nes_ui_gtk nes_ui_tui -v -o Xml | ||
|
||
- uses: codecov/[email protected] | ||
|
||
# For some reason windows crashes when running the emulator tests | ||
#windows: | ||
# runs-on: windows-latest | ||
# | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - name: Build native windows UI | ||
# run: cargo build -p nes_ui_native_windows --verbose | ||
# - name: Run tests | ||
# run: cargo test --workspace --exclude nes_ui_gtk --exclude nes_ui_sfml --lib | ||
# runs cargo with defaults flags, using the default `lcov` output | ||
- uses: Swatinem/fucov@v1 | ||
|
||
# afterwards, upload the report to codecov | ||
- uses: codecov/codecov-action@v1 | ||
with: | ||
directory: coverage | ||
|
||
windows: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build | ||
run: cargo build --all --all-targets | ||
- name: Run tests | ||
run: cargo test --workspace --exclude plastic_ui --exclude plastic_ui_tui --lib | ||
|