Skip to content

Commit

Permalink
CI: rework to use jirutka/setup-alpine@v1
Browse files Browse the repository at this point in the history
Simpler.

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb authored and jpakkane committed Jan 13, 2024
1 parent db86a2c commit 338320f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 31 deletions.
28 changes: 11 additions & 17 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,31 +35,25 @@ jobs:
Alpine:
if: github.event_name != 'schedule' || github.repository == 'mesonbuild/wrapdb'
runs-on: ubuntu-latest
container:
image: alpine:3.18
env:
TEST_BUILD_ALL: 1
TEST_FATAL_WARNINGS: ${{ github.event.inputs.fatal_warnings }}
steps:
- name: Install packages
run: |
apk add cmake g++ gcc git linux-headers pkgconf py3-pip samurai sudo
python -m pip install git+https://github.com/mesonbuild/meson
git config --global --add safe.directory '*'
- uses: jirutka/setup-alpine@v1
with:
branch: v3.18
packages: >
build-base cmake git linux-headers pkgconf py3-pip samurai sudo
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Create non privileged user
run: |
adduser wrapdb --disabled-password
echo 'wrapdb ALL=(ALL:ALL) NOPASSWD: ALL' >/etc/sudoers.d/wrapdb
chown -R wrapdb:wrapdb .
- name: Sanity Checks
env:
TEST_BUILD_ALL: 1
TEST_FATAL_WARNINGS: ${{ github.event.inputs.fatal_warnings }}
run: |
su -c - wrapdb ./tools/sanity_checks.py
python -m pip install --pre meson
./tools/sanity_checks.py
shell: alpine.sh {0}

VisualStudio:
if: github.event_name != 'schedule' || github.repository == 'mesonbuild/wrapdb'
Expand Down
22 changes: 8 additions & 14 deletions .github/workflows/sanity_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,22 @@ jobs:
Alpine:
runs-on: ubuntu-latest
container:
image: alpine:3.18
steps:
- name: Install packages
run: |
apk add cmake g++ gcc git linux-headers pkgconf py3-pip samurai sudo
python -m pip install --pre meson
git config --global --add safe.directory '*'
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Create non privileged user
run: |
adduser wrapdb --disabled-password
echo 'wrapdb ALL=(ALL:ALL) NOPASSWD: ALL' >/etc/sudoers.d/wrapdb
chown -R wrapdb:wrapdb .
- uses: jirutka/setup-alpine@v1
with:
branch: v3.18
packages: >
build-base cmake git linux-headers pkgconf py3-pip samurai sudo
- name: Sanity Checks
run: |
su -c - wrapdb ./tools/sanity_checks.py
python -m pip install --pre meson
./tools/sanity_checks.py
shell: alpine.sh {0}

VisualStudio:
runs-on: windows-latest
Expand Down

0 comments on commit 338320f

Please sign in to comment.