Skip to content

Commit 7af3c4d

Browse files
committed
[scripts] Fix GHA Formatting Checks
1 parent ee99905 commit 7af3c4d

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
steps:
2424
- name: "Checkout code"
2525
uses: actions/checkout@v4
26-
- name: "Install clang-format"
27-
run: sudo apt install -y clang-format
26+
- name: "Install APT deps"
27+
run: ./scripts/apt.sh
2828
- name: "Build workspace (needed for auto-generated modules)"
2929
run: cargo build
3030
- name: "Run formatting checks"

scripts/apt.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
sudo apt install -y \
4+
clang-format \
5+
libfontconfig1-dev \
6+
libssl-dev \
7+
pkg-config > /dev/null 2>&1

scripts/workon.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ export FAASM_VERSION=0.33.0
3737
# APT deps
3838
# ----------------------------
3939

40-
sudo apt install -y \
41-
libfontconfig1-dev \
42-
libssl-dev \
43-
pkg-config > /dev/null 2>&1
40+
source ${THIS_DIR}/apt.sh
4441

4542
# ----------------------------
4643
# Python deps

0 commit comments

Comments
 (0)