Skip to content

Commit 2426131

Browse files
committed
wip
1 parent a221615 commit 2426131

File tree

3 files changed

+109
-23
lines changed

3 files changed

+109
-23
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
2+
name: 'Hello World'
3+
description: 'Greet someone'
4+
5+
inputs:
6+
who-to-greet:
7+
description: 'Who to greet'
8+
required: true
9+
default: 'World'
10+
11+
outputs:
12+
random-number:
13+
description: "Random number"
14+
value: ${{ steps.random-number-generator.outputs.random-number }}
15+
16+
runs:
17+
using: "composite"
18+
steps:
19+
- name: Set Greeting
20+
run: echo "Hello $INPUT_WHO_TO_GREET."
21+
env:
22+
INPUT_WHO_TO_GREET: ${{ inputs.who-to-greet }}
23+
24+
- name: Random Number Generator
25+
id: random-number-generator
26+
run: echo "random-number=$(echo $RANDOM)" >> $GITHUB_OUTPUT
27+
28+
- name: Set GitHub Path
29+
run: echo "$GITHUB_ACTION_PATH" >> $GITHUB_PATH
30+
env:
31+
GITHUB_ACTION_PATH: ${{ github.action_path }}
32+
33+
# - name: Install apt dependencies
34+
# run: apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install curl gpg binutils git unzip gnupg2 libc6-dev libcurl4-openssl-dev libedit2 libgcc-13-dev libpython3-dev libstdc++-13-dev libxml2-dev libncurses-dev libz3-dev pkg-config tzdata zlib1g-dev
35+
36+
# - name: Install Swiftly
37+
# run: |
38+
# curl -O "https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz"
39+
# tar zxf "swiftly-$(uname -m).tar.gz"
40+
# ./swiftly init --skip-install --assume-yes
41+
42+
# export SWIFTLY_HOME_DIR="$HOME/.local/share/swiftly"
43+
# echo "SWIFTLY_HOME_DIR=$SWIFTLY_HOME_DIR" >> $GITHUB_ENV
44+
45+
# export SWIFTLY_BIN_DIR="$HOME/.local/share/swiftly/bin"
46+
# echo "SWIFTLY_BIN_DIR=$SWIFTLY_BIN_DIR" >> $GITHUB_ENV
47+
48+
# export PATH="$SWIFTLY_BIN_DIR:$PATH"
49+
# echo "PATH=$PATH" >> $GITHUB_ENV
50+
51+
# - name: Install Swift
52+
# run: |
53+
# set -ex
54+
# ls /root/.local/share/swiftly/bin
55+
# echo $PATH
56+
# echo which swiftly
57+
# which swiftly
58+
59+
# swiftly install
60+
# swift --version

.github/workflows/build-stm.yml

Lines changed: 48 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,55 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
example: [stm32-blink]
20-
swift: [swift-DEVELOPMENT-SNAPSHOT-2025-03-04-a]
2120

2221
steps:
23-
- name: Checkout repo
24-
uses: actions/checkout@v4
22+
# - name: Checkout repo
23+
# uses: actions/checkout@v4
2524

26-
- name: Set up Python
27-
uses: actions/setup-python@v5
25+
# - name: Set up Python
26+
# uses: actions/setup-python@v5
27+
# with:
28+
# python-version: 3.11
29+
30+
# - name: Install uv
31+
# uses: astral-sh/setup-uv@v5
32+
33+
- name: Install Swift
34+
uses: ./.github/actions/install-swift
2835
with:
29-
python-version: 3.11
30-
31-
- name: Install uv
32-
uses: astral-sh/setup-uv@v5
33-
34-
- name: Install ${{ matrix.swift }}
35-
run: |
36-
wget -q https://download.swift.org/development/ubuntu2404/${{ matrix.swift }}/${{ matrix.swift }}-ubuntu24.04.tar.gz
37-
tar xzf ${{ matrix.swift }}-ubuntu24.04.tar.gz
38-
export PATH="`pwd`/${{ matrix.swift }}-ubuntu24.04/usr/bin/:$PATH"
39-
echo "PATH=$PATH" >> $GITHUB_ENV
40-
swiftc --version
41-
42-
- name: Build ${{ matrix.example }}
43-
working-directory: ${{ matrix.example }}
44-
run: |
45-
export STM_BOARD=STM32F746G_DISCOVERY
46-
./build-elf.sh
36+
who-to-greet: 'Mona the Octocat'
37+
38+
# - name: Install apt dependencies
39+
# run: apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install curl gpg binutils git unzip gnupg2 libc6-dev libcurl4-openssl-dev libedit2 libgcc-13-dev libpython3-dev libstdc++-13-dev libxml2-dev libncurses-dev libz3-dev pkg-config tzdata zlib1g-dev
40+
41+
# - name: Install Swiftly
42+
# run: |
43+
# curl -O "https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz"
44+
# tar zxf "swiftly-$(uname -m).tar.gz"
45+
# ./swiftly init --skip-install --assume-yes
46+
47+
# export SWIFTLY_HOME_DIR="$HOME/.local/share/swiftly"
48+
# echo "SWIFTLY_HOME_DIR=$SWIFTLY_HOME_DIR" >> $GITHUB_ENV
49+
50+
# export SWIFTLY_BIN_DIR="$HOME/.local/share/swiftly/bin"
51+
# echo "SWIFTLY_BIN_DIR=$SWIFTLY_BIN_DIR" >> $GITHUB_ENV
52+
53+
# export PATH="$SWIFTLY_BIN_DIR:$PATH"
54+
# echo "PATH=$PATH" >> $GITHUB_ENV
55+
56+
# - name: Install Swift
57+
# run: |
58+
# set -ex
59+
# ls /root/.local/share/swiftly/bin
60+
# echo $PATH
61+
# echo which swiftly
62+
# which swiftly
63+
64+
# swiftly install
65+
# swift --version
66+
67+
# - name: Build ${{ matrix.example }}
68+
# working-directory: ${{ matrix.example }}
69+
# run: |
70+
# export STM_BOARD=STM32F746G_DISCOVERY
71+
# ./build-elf.sh

.swift-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
main-snapshot-2025-04-12

0 commit comments

Comments
 (0)