Skip to content

Commit 450566c

Browse files
authored
ci: Split the windows and linux workflows (PLC-lang#1242)
Separate the windows workflow into its own file so we can disable it
1 parent 4abbec6 commit 450566c

File tree

2 files changed

+51
-39
lines changed

2 files changed

+51
-39
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build
1+
name: Build Linux
22

33
on:
44
# Triggers the workflow on push or pull request events but only for the master branch
@@ -63,44 +63,6 @@ jobs:
6363
name: stdlib
6464
path: output
6565

66-
test-windows:
67-
name: Test Windows
68-
runs-on: windows-2022
69-
env:
70-
toolchain-version: 1.77.0
71-
llvm-version: 14.0.6
72-
steps:
73-
74-
- uses: actions/checkout@v3
75-
76-
- name: Install Rust
77-
uses: dtolnay/rust-toolchain@master
78-
with:
79-
toolchain: ${{ env.toolchain-version }}
80-
81-
- name: Install LLVM
82-
uses: ghaith/install-llvm-action@latest
83-
with:
84-
version: ${{ env.llvm-version }}
85-
directory: "./llvm"
86-
87-
- name: Cargo test (Unit)
88-
run: cargo test --lib -- --nocapture
89-
90-
- name: Cargo test (Correctness)
91-
run: cargo test correctness -- --nocapture --test-threads=1
92-
93-
- name: Cargo test (Integration)
94-
run: cargo test integration -- --nocapture --test-threads=1
95-
96-
- name: Release Build
97-
run: cargo build --release --workspace
98-
99-
- uses: actions/upload-artifact@master
100-
with:
101-
name: plc.exe
102-
path: target/release/plc.exe
103-
10466
style:
10567
name: Check Style
10668
runs-on: ubuntu-latest

.github/workflows/windows.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Build Windows
2+
3+
on:
4+
# Triggers the workflow on push or pull request events but only for the master branch
5+
push:
6+
pull_request:
7+
branches: [ master ]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
name: Windows Build
15+
runs-on: windows-2022
16+
env:
17+
toolchain-version: 1.77.0
18+
llvm-version: 14.0.6
19+
steps:
20+
21+
- uses: actions/checkout@v3
22+
23+
- name: Install Rust
24+
uses: dtolnay/rust-toolchain@master
25+
with:
26+
toolchain: ${{ env.toolchain-version }}
27+
28+
- name: Install LLVM
29+
uses: ghaith/install-llvm-action@latest
30+
with:
31+
version: ${{ env.llvm-version }}
32+
directory: "./llvm"
33+
34+
- name: Cargo test (Unit)
35+
run: cargo test --lib -- --nocapture
36+
37+
- name: Cargo test (Correctness)
38+
run: cargo test correctness -- --nocapture --test-threads=1
39+
40+
- name: Cargo test (Integration)
41+
run: cargo test integration -- --nocapture --test-threads=1
42+
43+
- name: Release Build
44+
run: cargo build --release --workspace
45+
46+
- uses: actions/upload-artifact@master
47+
with:
48+
name: plc.exe
49+
path: target/release/plc.exe
50+

0 commit comments

Comments
 (0)