-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add a GitHub workflow to test builds on Alpine
- Loading branch information
1 parent
9ebc1f2
commit e8a8596
Showing
2 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
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 | ||
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' |