Skip to content

Commit 03fc213

Browse files
committed
update CI to use GitHub workflow, scarthgap
1 parent 9c400ab commit 03fc213

File tree

4 files changed

+35
-82
lines changed

4 files changed

+35
-82
lines changed

.devcontainer/Dockerfile

Lines changed: 0 additions & 10 deletions
This file was deleted.

.devcontainer/devcontainer.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 35 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,38 @@
1-
name: Build
1+
name: build
22

3-
on: [push]
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
47

58
jobs:
6-
7-
build:
8-
name: Build
9-
runs-on: ubuntu-latest
10-
container: colemancda/meta-swift
11-
strategy:
12-
matrix:
13-
machine: [beaglebone-yocto, qemuarm64]
14-
steps:
15-
- name: Checkout
16-
uses: actions/checkout@v3
17-
- name: Build
18-
run: |
19-
export SRC_ROOT=$GITHUB_WORKSPACE
20-
export POKY_DIR=/tmp/poky
21-
export MACHINE=${{ matrix.machine }}
22-
cd /tmp/
23-
git clone --branch dunfell-23.0.20-cmake-3.22.3 https://github.com/MillerTechnologyPeru/poky.git
24-
cd $SRC_ROOT
25-
./build.sh
9+
yocto-arm64:
10+
runs-on: ubuntu-24.04
11+
container:
12+
steps:
13+
- name: Packages
14+
run: |
15+
sudo apt-get update
16+
sudo apt install -y build-essential chrpath cpio debianutils diffstat file gawk gcc git iputils-ping libacl1 liblz4-tool locales python3 python3-git python3-jinja2 python3-pexpect python3-pip python3-subunit socat texinfo unzip wget xz-utils zstd
17+
echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
18+
- name: Checkout Poky
19+
uses: actions/checkout@v4
20+
with:
21+
repository: yoctoproject/poky
22+
path: poky
23+
ref: scarthgap
24+
fetch_depth: 0
25+
- name: Checkout Swift layer
26+
uses: actions/checkout@v4
27+
with:
28+
path: poky/meta-swift
29+
fetch_depth: 0
30+
- name: Build
31+
run: |
32+
cd $GITHUB_WORKSPACE/poky
33+
source oe-init-build-env
34+
bitbake-layers add-layer ../meta-swift
35+
rm -f conf/local.conf
36+
echo 'MACHINE = "qemuarm64"' > conf/local.conf
37+
echo 'INHERIT += "rm_work"' >> conf/local.conf
38+
bitbake swift-hello-world

.gitlab-ci.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)