Skip to content

Commit 08257a5

Browse files
committed
wip
1 parent c4fa06c commit 08257a5

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.github/actions/install-swift/action.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ runs:
77
- name: Install apt dependencies
88
shell: bash
99
run: |
10-
sudo apt-get -qq update
11-
sudo apt-get -qq -y install curl gpg binutils git unzip gnupg2 libc6-dev \
12-
libcurl4-openssl-dev libedit2 libgcc-13-dev libpython3-dev \
10+
SUDO=$([[ $EUID -ne 0 ]] && echo sudo)
11+
$SUDO apt-get -qq update
12+
$SUDO apt-get -qq -y install curl gpg binutils git unzip gnupg2 \
13+
libc6-dev libcurl4-openssl-dev libedit2 libgcc-13-dev libpython3-dev \
1314
libstdc++-13-dev libxml2-dev libncurses-dev libz3-dev pkg-config \
1415
tzdata zlib1g-dev
1516
env:
@@ -24,7 +25,7 @@ runs:
2425
2526
export SWIFTLY_HOME_DIR="$HOME/.local/share/swiftly"
2627
echo "SWIFTLY_HOME_DIR=$SWIFTLY_HOME_DIR" >> $GITHUB_ENV
27-
28+
2829
export SWIFTLY_BIN_DIR="$HOME/.local/share/swiftly/bin"
2930
echo "SWIFTLY_BIN_DIR=$SWIFTLY_BIN_DIR" >> $GITHUB_ENV
3031

.github/workflows/build-nuttx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
5252
- name: Install Swift
5353
uses: ./.github/actions/install-swift
54-
54+
5555
- name: Build ${{ matrix.example }}
5656
working-directory: ${{ matrix.example }}
5757
run: |

.github/workflows/build-pico-sdk.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
4949
- name: Install Swift
5050
uses: ./.github/actions/install-swift
51-
51+
5252
- name: Clone Pico SDK
5353
run: |
5454
git clone https://github.com/raspberrypi/pico-sdk.git

0 commit comments

Comments
 (0)