-
-
Notifications
You must be signed in to change notification settings - Fork 1
66 lines (65 loc) · 2.82 KB
/
buildroot.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Buildroot
on: [push]
jobs:
build:
name: Build Swift for Buildroot
strategy:
matrix:
config: ["imx6slevk", "aarch64_efi", "pc_x86_64_efi", "qemu_x86", "olimex_imx233_olinuxino", "raspberrypi0w", "qemu_ppc64le_pseries"]
runs-on: ubuntu-latest
container: swift:5.10-jammy
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: |
export SRC_ROOT=$GITHUB_WORKSPACE
export DEFCONFIG=${{ matrix.config }}_swift_defconfig
export SWIFT_NATIVE_TOOLS=/workspaces/swift/usr/bin
export SWIFT_LLVM_DIR=/workspaces/llvm
export BUILDROOT_DIR=/workspaces/buildroot
export BUILDROOT_RELEASE=2024.02.1
export DEBIAN_FRONTEND=noninteractive
export DEBCONF_NONINTERACTIVE_SEEN=true
apt update
$SRC_ROOT/.devcontainer/library-scripts/install-dependencies.sh
$SRC_ROOT/.devcontainer/library-scripts/install-swift.sh
$SRC_ROOT/.devcontainer/build-scripts/download-buildroot.sh
$SRC_ROOT/.devcontainer/build-scripts/build.sh
- name: Archive Build artifacts
uses: actions/upload-artifact@v3
with:
name: build-${{ matrix.config }}
path: /workspaces/buildroot/output/images
build-riscv64:
name: Build Swift for Buildroot (riscv64)
strategy:
matrix:
config: ["nezha"]
runs-on: ubuntu-latest
container: swift:5.10-jammy
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: |
export SRC_ROOT=$GITHUB_WORKSPACE
export DEFCONFIG=${{ matrix.config }}_swift_defconfig
export SWIFT_NATIVE_TOOLS=/workspaces/swift/usr/bin
export SWIFT_LLVM_DIR=/workspaces/llvm
export BUILDROOT_DIR=/workspaces/buildroot
export BUILDROOT_RELEASE=2024.02.1
export DEBIAN_FRONTEND=noninteractive
export DEBCONF_NONINTERACTIVE_SEEN=true
export SWIFT_BIN_URL=https://github.com/MillerTechnologyPeru/swift/releases/download/swift-5.10-RELEASE/swift-5.10-Debian11-x86_64.tar.gz
apt update
$SRC_ROOT/.devcontainer/library-scripts/install-dependencies.sh
$SRC_ROOT/.devcontainer/library-scripts/install-swift.sh
$SRC_ROOT/.devcontainer/build-scripts/download-buildroot.sh
cp $SRC_ROOT/package/swift/extra-patches/002-RISCV64.patch $SRC_ROOT/package/swift/002-RISCV64.patch
$SRC_ROOT/.devcontainer/build-scripts/build.sh
- name: Archive Build artifacts
uses: actions/upload-artifact@v3
with:
name: build-${{ matrix.config }}
path: /workspaces/buildroot/output/images