-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'volsa/lit' of https://github.com/plc-lang/rusty into vo…
…lsa/lit
- Loading branch information
Showing
3 changed files
with
52 additions
and
52 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 |
---|---|---|
|
@@ -19,4 +19,4 @@ jobs: | |
|
||
- name: Run lit | ||
shell: bash | ||
run: ./scripts/build.sh --test | ||
run: ./scripts/build.sh --lit |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Build Windows | ||
|
||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Windows Build | ||
runs-on: windows-2022 | ||
env: | ||
toolchain-version: 1.77.0 | ||
llvm-version: 14.0.6 | ||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ env.toolchain-version }} | ||
|
||
- name: Install LLVM | ||
uses: ghaith/install-llvm-action@latest | ||
with: | ||
version: ${{ env.llvm-version }} | ||
directory: "./llvm" | ||
|
||
- name: Cargo test (Unit) | ||
run: cargo test --lib -- --nocapture | ||
|
||
- name: Cargo test (Correctness) | ||
run: cargo test correctness -- --nocapture --test-threads=1 | ||
|
||
- name: Cargo test (Integration) | ||
run: cargo test integration -- --nocapture --test-threads=1 | ||
|
||
- name: Release Build | ||
run: cargo build --release --workspace | ||
|
||
- uses: actions/upload-artifact@master | ||
with: | ||
name: plc.exe | ||
path: target/release/plc.exe | ||
|