jirutka / setup-alpine

Easily use Alpine Linux on GitHub Actions, with support for QEMU user emulator
MIT License
93 stars 14 forks source link

Image is slightly different from docker image? #16

Closed JohanEngelen closed 1 week ago

JohanEngelen commented 1 week ago

Thanks for this project! It is really useful and easy to use.

However, I'm having issues where local testing with a docker image (e.g. alpine:latest, or alpine:3.20.1) is behaving different than the image in a Github action. In particular, ninja appears missing in the github action image. (and installing with apk add ninja-is-really-ninja does not help)

How do I locally get the same image as in GHA ?

JohanEngelen commented 1 week ago

To reproduce, this is my .yml file:

name: Alpine Linux (musl libc)
on:
  - pull_request
  - push

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  test:
    name: Alpine Linux (musl libc)
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          submodules: true
          fetch-depth: 50

      - name: Setup latest Alpine Linux
        uses: jirutka/setup-alpine@v1
        with:
          branch: v3.20
          packages: ninja

      - name: Test ninja
        run: |
          ninja --version
jirutka commented 1 week ago

That’s because you forgot shell: alpine.sh {0}, see the examples in readme.

JohanEngelen commented 1 week ago

Oh wow... I've had it working some time ago and apparently that line dropped from the yml during some rework... Thanks, sorry for the noise.