Skip to content

Fix Swift staging installation #68

Fix Swift staging installation

Fix Swift staging installation #68

Workflow file for this run

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