-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (29 loc) · 1.07 KB
/
build_packages.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
name: Build Packages on Alpine
on:
- push
- pull_request
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout ${{ github.ref }}
uses: actions/checkout@v4
- name: Build
run: |
devel/downloads/download_packages.sh
# Don't install llvm
sed -i '/function install_packages/,/^}/ s/llvm//' devel/scripts/install.sh
curl -L "$(curl -L https://api.github.com/repos/adonis0147/devel-env/releases/latest |
sed -n 's|[[:space:]]*"browser_download_url": "\(.*\)\"|\1|p' |
grep "$(uname -m | sed 's/arm64/aarch64/')")" -o devel/scripts/install_toolchain.sh
chmod a+x devel/scripts/install_toolchain.sh
cat >>Dockerfile <<EOF
FROM alpine:latest
RUN apk add bash libc6-compat
RUN mkdir /devel-env
WORKDIR /devel-env
EOF
docker build -t packages .
docker run --rm --mount=type=bind,source="$(pwd)",target=/devel-env packages \
bash -c 'cd devel/scripts; bash install.sh'