Skip to content

Commit

Permalink
workflow: build chroot with apk.static
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyao233 committed Jan 18, 2025
1 parent 022fe70 commit 9f97df9
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/ci-x86.yml
Original file line number Diff line number Diff line change
Expand Up @@ -356,21 +356,22 @@ jobs:
# Create an Alpine Linux 3.21.2 chroot environment for building
- name: Create Build Environment
run: |
mkdir alpine-root && cd alpine-root
curl -L https://dl-cdn.alpinelinux.org/v3.21/releases/x86_64/alpine-minirootfs-3.21.0-x86_64.tar.gz | \
sudo tar xzv
curl -L https://dl-cdn.alpinelinux.org/v3.21/main/x86_64/apk-tools-static-2.14.6-r2.apk | \
sudo tar xzv sbin/apk.static
tar xzv sbin/apk.static
sudo mkdir -p alpine-root/etc/apk
echo "https://dl-cdn.alpinelinux.org/v3.21/main/" | \
sudo tee alpine-root/etc/apk/repositories
sudo sbin/apk.static -p alpine-root -U --initdb add \
alpine-base alpine-sdk bash cmake doxygen g++ libunwind-dev lz4-dev \
xz-dev zlib-dev
cd alpine-root
sudo mount -o bind /dev/ dev
sudo mount -t proc proc proc
sudo mount -t sysfs sys sys
sudo mount -o bind ${{ github.workspace }}/DynamoRIO root
sudo sbin/apk.static upgrade -U
sudo sbin/apk.static add \
alpine-sdk bash cmake doxygen zlib-dev lz4-dev libunwind-dev xz-dev
- name: Run Suite
working-directory: ${{ github.workspace }}
run: |
Expand Down

0 comments on commit 9f97df9

Please sign in to comment.