forked from Ecdar/Reveaal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into bench-symbol-6
- Loading branch information
Showing
162 changed files
with
5,887 additions
and
3,080 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 |
---|---|---|
@@ -1,95 +1,84 @@ | ||
name: Build artifacts | ||
name: Build Artifacts | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
push: | ||
|
||
jobs: | ||
build-macos: | ||
macos: | ||
name: Build MacOS | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'true' | ||
- uses: arduino/setup-protoc@v1.1.2 | ||
- uses: arduino/setup-protoc@v2 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
- name: Build | ||
uses: actions-rs/cargo@v1 | ||
- name: cargo build --release | ||
uses: clechasseur/rs-cargo@v1 | ||
with: | ||
command: build | ||
args: --release | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: reveaal-macos | ||
path: target/release/Reveaal | ||
path: target/release/reveaal | ||
if-no-files-found: error | ||
retention-days: 7 | ||
|
||
build-win: | ||
win: | ||
name: Build Windows | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'true' | ||
- uses: arduino/setup-protoc@v1.1.2 | ||
- uses: arduino/setup-protoc@v2 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
- name: Build | ||
uses: actions-rs/cargo@v1 | ||
- name: cargo build --release | ||
uses: clechasseur/rs-cargo@v1 | ||
with: | ||
command: build | ||
args: --release | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: reveaal-windows | ||
path: target/release/Reveaal.exe | ||
path: target/release/reveaal.exe | ||
if-no-files-found: error | ||
|
||
build-ubuntu: | ||
retention-days: 7 | ||
|
||
ubuntu: | ||
name: Build Ubuntu | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'true' | ||
- uses: arduino/setup-protoc@v1.1.2 | ||
- uses: arduino/setup-protoc@v2 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
- name: Build | ||
uses: actions-rs/cargo@v1 | ||
- name: cargo build --release | ||
uses: clechasseur/rs-cargo@v1 | ||
with: | ||
command: build | ||
args: --release | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: reveaal-ubuntu | ||
path: target/release/Reveaal | ||
if-no-files-found: error | ||
path: target/release/reveaal | ||
if-no-files-found: error | ||
retention-days: 7 |
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,45 @@ | ||
name: Check formatting | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
|
||
jobs: | ||
fmt: | ||
name: cargo fmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: sudo apt-get install llvm protobuf-compiler | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'true' | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: rustfmt | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
- name: cargo fmt --all | ||
uses: clechasseur/rs-cargo@v1 | ||
with: | ||
command: fmt | ||
args: --all -- --check | ||
|
||
clippy: | ||
name: Clippy lint and check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: sudo apt-get install llvm protobuf-compiler | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'true' | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: clippy | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
- name: clippy --all-targets --all-features | ||
uses: clechasseur/rs-clippy-check@v3 | ||
with: | ||
args: --all-targets --all-features -- -D warnings |
This file was deleted.
Oops, something went wrong.
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,25 @@ | ||
name: Run Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
|
||
jobs: | ||
ubuntu: | ||
name: Tests Ubuntu | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'true' | ||
- run: sudo apt-get install llvm protobuf-compiler | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: clippy | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
- name: cargo test | ||
uses: clechasseur/rs-cargo@v1 | ||
with: | ||
command: test |
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
[submodule "Ecdar-ProtoBuf"] | ||
path = Ecdar-ProtoBuf | ||
url = https://github.com/Ecdar/Ecdar-ProtoBuf.git | ||
branch = main | ||
url = https://github.com/ECDAR-AAU-SW-P5/Ecdar-ProtoBuf.git |
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
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.