Skip to content

Commit 4c51473

Browse files
authored
Fix linux conditional in ci-build.yml (#4863)
1 parent f70e8a3 commit 4c51473

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ci-build.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Install Dependencies (Linux)
5353
run: sudo apt-get update && sudo apt-get -y install libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev libudev-dev squashfs-tools protobuf-compiler
5454
continue-on-error: true
55-
if: matrix.os == 'custom-linux'
55+
if: contains(matrix.os, 'ubuntu')
5656

5757
- name: Check out repository code
5858
uses: actions/checkout@v4
@@ -87,28 +87,28 @@ jobs:
8787
args: --features axum
8888

8989
- name: Build all examples
90-
if: matrix.os == 'custom-linux'
90+
if: contains(matrix.os, 'ubuntu')
9191
uses: actions-rs/cargo@v1
9292
with:
9393
command: build
9494
args: --workspace --examples --features wireguard
9595

9696
- name: Run all tests
97-
if: matrix.os == 'custom-linux'
97+
if: contains(matrix.os, 'ubuntu')
9898
uses: actions-rs/cargo@v1
9999
with:
100100
command: test
101101
args: --workspace --features wireguard
102102

103103
- name: Run expensive tests
104-
if: (github.ref == 'refs/heads/develop' || github.event.pull_request.base.ref == 'develop' || github.event.pull_request.base.ref == 'master') && matrix.os == 'custom-linux'
104+
if: (github.ref == 'refs/heads/develop' || github.event.pull_request.base.ref == 'develop' || github.event.pull_request.base.ref == 'master') && contains(matrix.os, 'ubuntu')
105105
uses: actions-rs/cargo@v1
106106
with:
107107
command: test
108108
args: --workspace --features wireguard -- --ignored
109109

110110
- name: Annotate with clippy checks
111-
if: matrix.os == 'custom-linux'
111+
if: contains(matrix.os, 'ubuntu')
112112
uses: actions-rs/clippy-check@v1
113113
continue-on-error: true
114114
with:

0 commit comments

Comments
 (0)