Skip to content

Commit

Permalink
Enabling CI/CD for all latest ubuntu, macos and windows. (#111)
Browse files Browse the repository at this point in the history
* Enabling CI/CD for all latest ubuntu, macos and windows.

* Try to at least test the core on Windows

* just compiling brake on workspace also remove those on windows.

* broke the CI file

* remove stuff from the windows side again
  • Loading branch information
gbin authored Dec 3, 2024
1 parent 58ada78 commit 24738c8
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
os: [ ubuntu-latest, macos-14 ] # macos tends to break more often.
os: [ ubuntu-latest, macos-latest, windows-latest ] # macos tends to break more often.
continue-on-error: false
steps:
- uses: actions/checkout@v4
Expand All @@ -33,24 +33,42 @@ jobs:
run: sudo apt-get update && sudo apt-get install -y libudev-dev libpcap-dev

- name: Build vanilla
if: runner.os != 'Windows'
run: |
# For sim even robot/linux specific crate needs to at least compile.
cargo build --workspace --features macro_debug
# For now just test the core on windows.
- name: Build vanilla
if: runner.os == 'Windows'
run: |
cargo build
- name: Build with mocks
if: runner.os != 'Windows'
run: |
cargo build --workspace --features mock
- name: Run tests
if: runner.os != 'Windows'
run: cargo test --workspace

# For now just test the core on windows.
- name: Run tests (windows)
if: runner.os == 'Windows'
run: cargo test

- name: Run clippy
if: runner.os != 'Windows'
run: cargo clippy -- -W warnings

# Integration Test for the 1 liner generation of a project.
- name: Install cargo-generate
if: runner.os != 'Windows'
run: cargo install cargo-generate

- name: Generate new project in temporary directory
if: runner.os != 'Windows'
run: |
cd templates
cargo generate -p cu_full --name test_project --destination $RUNNER_TEMP --silent
Expand Down

0 comments on commit 24738c8

Please sign in to comment.