Skip to content

Commit 0eac3fe

Browse files
committed
[poc_linux_compile] Add Linux x86 as a matrice - fix condition
1 parent 2dc3b3d commit 0eac3fe

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/poc-agent-build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,11 @@ jobs:
156156
run: curl https://sh.rustup.rs -sSf | sh -s -- -y
157157

158158
- name: Add ARM Target
159-
if: ${{ matrix.runner-type }} == 'ubuntu-24.04-arm'
159+
if: matrix.runner-type == 'ubuntu-24.04-arm'
160160
run: . "$HOME/.cargo/env"; rustup target add aarch64-unknown-linux-musl
161161

162162
- name: Add x86 Target
163-
if: ${{ matrix.runner-type }} == 'ubuntu-24.04'
163+
if: matrix.runner-type == 'ubuntu-24.04'
164164
run: . "$HOME/.cargo/env"; rustup target add x86_64-unknown-linux-musl
165165

166166
- name: Install Quality Tools
@@ -179,22 +179,22 @@ jobs:
179179
cargo audit
180180
181181
- name: Cargo build ARM Target
182-
if: ${{ matrix.runner-type }} == 'ubuntu-24.04-arm'
182+
if: matrix.runner-type == 'ubuntu-24.04-arm'
183183
run: . "$HOME/.cargo/env"; cargo build --target=aarch64-unknown-linux-musl --release
184184

185185
- name: Cargo build x86 Target
186-
if: ${{ matrix.runner-type }} == 'ubuntu-24.04'
186+
if: matrix.runner-type == 'ubuntu-24.04'
187187
run: . "$HOME/.cargo/env"; cargo build --target=x86_64-unknown-linux-musl --release
188188

189189
- name: Cargo test
190190
run: . "$HOME/.cargo/env"; cargo test --release
191191

192192
- name: Strip Binary ARM Target
193-
if: ${{ matrix.runner-type }} == 'ubuntu-24.04-arm'
193+
if: matrix.runner-type == 'ubuntu-24.04-arm'
194194
run: strip ./target/aarch64-unknown-linux-musl/release/openbas-agent
195195

196196
- name: Strip Binary x86 Target
197-
if: ${{ matrix.runner-type }} == 'ubuntu-24.04'
197+
if: matrix.runner-type == 'ubuntu-24.04'
198198
run: strip ./target/x86_64-unknown-linux-musl/release/openbas-agent
199199

200200

0 commit comments

Comments
 (0)