-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from open-rmf/workflows
Add GitHub workflows for CI
- Loading branch information
Showing
82 changed files
with
4,834 additions
and
3,412 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: ci_linux | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
push: | ||
branches: [main] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build default features | ||
run: cargo build | ||
- name: Test default features | ||
run: cargo test | ||
|
||
- name: Build single_threaded_async | ||
run: cargo build --features single_threaded_async | ||
- name: Test single_threaded_async | ||
run: cargo test --features single_threaded_async |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: ci_web | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
push: | ||
branches: [main] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Add wasm32 target | ||
run: rustup target add wasm32-unknown-unknown | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Build package | ||
run: cargo build --target wasm32-unknown-unknown --release --features single_threaded_async | ||
|
||
# Notes: | ||
# * Targeting wasm32 only works with the single_threaded_async feature because | ||
# wasm32 doesn't support threading at the moment. | ||
# * The regular cargo test pipeline cannot run tests that were compiled to wasm. | ||
# There may be ways to develop test executables specific to wasm32, but this | ||
# seems like overkill for now. |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: ci_windows | ||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
|
||
# Run build | ||
- name: Install Rustup using win.rustup.rs | ||
run: | | ||
# Disable the download progress bar which can cause perf issues | ||
$ProgressPreference = "SilentlyContinue" | ||
Invoke-WebRequest https://win.rustup.rs/ -OutFile rustup-init.exe | ||
.\rustup-init.exe -y --default-host=x86_64-pc-windows-msvc --default-toolchain=none | ||
del rustup-init.exe | ||
rustup target add x86_64-pc-windows-msvc | ||
shell: powershell | ||
|
||
- name: Build default features | ||
run: cargo build | ||
shell: cmd | ||
|
||
- name: Test default features | ||
run: cargo test | ||
shell: cmd | ||
|
||
- name: Build single_threaded_async | ||
run: cargo build --features single_threaded_async | ||
shell: cmd | ||
|
||
- name: Test single_threaded_async | ||
run: cargo test --features single_threaded_async | ||
shell: cmd |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: style | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
push: | ||
branches: [main] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
style: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: rustfmt | ||
run: | | ||
rustup component add rustfmt | ||
- name: style | ||
run: cargo fmt --all --check | ||
|
||
- name: minimal feature build | ||
run: cargo check --no-default-features |
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
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
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
Oops, something went wrong.