mirror of
https://github.com/apple/container.git
synced 2026-10-13 17:49:16 +00:00
Actions: Add Linux build step (#654)
Related to https://github.com/apple/containerization/issues/606 To make sure the project (and many linux specific libraries) builds on linux lets add a linux step to build for both musl and glibc. Eventually this will run unit tests as well. This change needs a bit more libc agnostic-ifying work to make sure things work for both libcs.
This commit is contained in:
1 parent
1a91899b63
commit
997d5a4b08
15 files changed
+210
-45
No files matched your search
@@ -0,0 +1,40 @@
|
||||
name: Linux build
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, reopened, synchronize]
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- release/*
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Linux compile check
|
||||
timeout-minutes: 30
|
||||
runs-on: ubuntu-24.04
|
||||
container: swift:6.3-noble
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install system dependencies
|
||||
run: apt-get update && apt-get install -y curl make libarchive-dev libbz2-dev liblzma-dev libssl-dev
|
||||
|
||||
- name: Build containerization
|
||||
run: make containerization
|
||||
|
||||
- name: Build vminitd (glibc)
|
||||
run: make -C vminitd SWIFT_CONFIGURATION="--disable-automatic-resolution -Xswiftc -warnings-as-errors"
|
||||
|
||||
- name: Install Static Linux SDK
|
||||
run: make -C vminitd linux-sdk
|
||||
|
||||
- name: Build vminitd (musl)
|
||||
run: make -C vminitd
|
||||
Reference in new issue
Block a user