-
-
Notifications
You must be signed in to change notification settings - Fork 1
95 lines (92 loc) · 4.07 KB
/
buildroot-experimental.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: Buildroot experimental
on: [workflow_dispatch]
jobs:
build-riscv64:
name: Build Swift for Buildroot (riscv64)
strategy:
matrix:
config: ["riscv64"]
runs-on: Linux
container: swift:6.0.3-bookworm
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: |
export SWIFT_BUILDROOT=$GITHUB_WORKSPACE
export DEFCONFIG=swift_${{ matrix.config }}_defconfig
export DEBIAN_FRONTEND=noninteractive
export DEBCONF_NONINTERACTIVE_SEEN=true
export SWIFT_BIN_URL=https://github.com/MillerTechnologyPeru/swift/releases/download/swift-6.0.3-RELEASE/swift-6.0.3-x86_64-RELEASE-Debian12.tar.gz
apt update
$SWIFT_BUILDROOT/.devcontainer/library-scripts/install-dependencies.sh
$SWIFT_BUILDROOT/.devcontainer/library-scripts/install-swift.sh
$SWIFT_BUILDROOT/.devcontainer/build-scripts/download-buildroot.sh
$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
build-ppc32:
name: Build Swift for Buildroot (powerpc)
strategy:
matrix:
config: ["ppc"]
runs-on: ubuntu-latest
container: swift:6.0.3-bookworm
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: |
export SWIFT_BUILDROOT=$GITHUB_WORKSPACE
export DEFCONFIG=swift_${{ matrix.config }}_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
export SWIFT_BIN_URL=https://github.com/MillerTechnologyPeru/swift/releases/download/swift-6.0.3-RELEASE/swift-6.0.3-x86_64-RELEASE-Debian12.tar.gz
apt update
$SWIFT_BUILDROOT/.devcontainer/library-scripts/install-dependencies.sh
$SWIFT_BUILDROOT/.devcontainer/library-scripts/install-swift.sh
$SWIFT_BUILDROOT/.devcontainer/build-scripts/download-buildroot.sh
$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
build-mips:
name: Build Swift for Buildroot (mips)
strategy:
matrix:
config: ["mips", "mips64"]
runs-on: ubuntu-latest
container: swift:6.0.3-bookworm
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: |
export SWIFT_BUILDROOT=$GITHUB_WORKSPACE
export DEFCONFIG=swift_${{ matrix.config }}_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
export SWIFT_BIN_URL=https://github.com/MillerTechnologyPeru/swift/releases/download/swift-6.0.3-RELEASE/swift-6.0.3-x86_64-RELEASE-Debian12.tar.gz
apt update
$SWIFT_BUILDROOT/.devcontainer/library-scripts/install-dependencies.sh
$SWIFT_BUILDROOT/.devcontainer/library-scripts/install-swift.sh
$SWIFT_BUILDROOT/.devcontainer/build-scripts/download-buildroot.sh
$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