Skip to content

Commit

Permalink
Add bootstrap test on Alpine Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
autarch committed Nov 3, 2024
1 parent 8a1fb80 commit d7ba9ba
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/test-bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,24 @@ jobs:
name: |
${{ matrix.platform.os_name }} - ${{ matrix.platform.script }} - ${{ ( matrix.tag == '' && 'no tag' ) || matrix.tag }}
runs-on: ${{ matrix.platform.os }}
container: ${{ matrix.platform.container }}
strategy:
fail-fast: false
matrix:
platform:
- os_name: Linux
os: ubuntu-latest
script: bootstrap-ubi.sh
- os_name: Alpine Linux (ash)
os: ubuntu-latest
container:
image: rust:alpine
env:
GITHUB_TOKEN: ${{ github.token }}
volumes:
- "${{ github.workspace }}:/workspace"
options: "--workdir /workspace"
script: bootstrap-ubi.sh
- os_name: macOS
os: macOS-latest
script: bootstrap-ubi.sh
Expand All @@ -42,12 +53,21 @@ jobs:
tag: v0.1.1
steps:
- uses: actions/checkout@v4
- name: Install curl on Alpine
shell: sh
run: |
apk update
apk add curl
if: matrix.platform.container != null
- name: Run bootstrap script
shell: bash
shell: sh
run: |
set -e
mkdir -p "$HOME/bin"
# On Alpine, we run as root so ubi gets installed to /usr/local/bin.
export PATH="$PATH:/usr/local/bin"
UBI_DEBUG_BOOTSTRAP=1 TAG="${{ matrix.tag }}" ./bootstrap/${{ matrix.platform.script }}
if [ ! -x "$HOME/bin/ubi" ]; then
echo "Running ./bootstrap/${{ matrix.platform.script }} did not install ubi!"
Expand Down

0 comments on commit d7ba9ba

Please sign in to comment.