-
-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (29 loc) · 1.17 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
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: colemancda/buildroot-swift:${{ matrix.config }}_swift_defconfig
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: |
export SWIFT_BUILDROOT=$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.9
export DEBIAN_FRONTEND=noninteractive
export DEBCONF_NONINTERACTIVE_SEEN=true
$SWIFT_BUILDROOT/.devcontainer/build-scripts/build.sh
- name: Archive Build artifacts
uses: actions/upload-artifact@v3
with:
name: build-${{ matrix.config }}
path: /workspaces/buildroot/output/images