Skip to content

Commit 5753dd0

Browse files
authored
Add arch container that would have caught mi_free bug (#787)
This hopefully would have caught: #780
1 parent 40c9c80 commit 5753dd0

3 files changed

Lines changed: 28 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,20 @@ jobs:
123123
gh release edit "${{ needs.create-release.outputs.version }}" --prerelease --draft=false --repo HalFrgrd/flyline
124124
125125
test-installation:
126-
name: test-installation
126+
name: test-installation (${{ matrix.target }})
127127
needs: [create-release, publish-release]
128128
runs-on: ubuntu-latest
129+
strategy:
130+
fail-fast: false
131+
matrix:
132+
target: [install-test-alpine, install-test-ubuntu, install-test-arch, install-test-bash-3-2-57]
129133
steps:
130134
- uses: actions/checkout@v7
131135
- name: Set up Docker Buildx
132136
uses: docker/setup-buildx-action@v4
133-
- name: Test installation on Alpine and Ubuntu
137+
- name: Test installation
134138
env:
135139
FLYLINE_INSTALL_VERSION: ${{ needs.create-release.outputs.version }}
136140
run: |
137-
docker buildx bake -f docker-bake.hcl install-test-alpine install-test-ubuntu install-test-bash-3-2-57
141+
docker buildx bake -f docker-bake.hcl ${{ matrix.target }}
142+

docker-bake.hcl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,15 @@ target "install-test-ubuntu" {
249249
}
250250
}
251251

252+
target "install-test-arch" {
253+
context = "."
254+
dockerfile = "docker/install_test_arch.Dockerfile"
255+
args = {
256+
FLYLINE_INSTALL_VERSION = FLYLINE_INSTALL_VERSION
257+
}
258+
}
259+
260+
252261
target "install-test-bash-3-2-57" {
253262
context = "."
254263
contexts = {
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM archlinux:latest
2+
3+
ARG FLYLINE_INSTALL_VERSION
4+
5+
RUN pacman -Syu --noconfirm && \
6+
pacman -S --noconfirm curl bash tar
7+
8+
RUN curl -sSfL https://github.com/HalFrgrd/flyline/releases/download/${FLYLINE_INSTALL_VERSION}/install.sh | FLYLINE_INSTALL_VERSION=${FLYLINE_INSTALL_VERSION} sh
9+
10+
# Run bash interactively to load flyline and test that it doesn't crash/fail on Arch Linux's strict dynamic linking environment
11+
RUN /bin/bash -i -c "flyline --version"

0 commit comments

Comments
 (0)