Skip to content

Commit

Permalink
It seems that nawk is broken in Arch Linux, switch to Alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorm committed Oct 22, 2023
1 parent 93e95c5 commit bf882f2
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,28 +131,6 @@ jobs:
- name: 'Test project'
run: 'make test-all'

test-archlinux-latest-awk-nawk:
name: 'Test on Arch Linux (nawk awk implementation)'
needs:
- 'lint-shellcheck-stable'
runs-on: 'ubuntu-latest'
permissions:
contents: 'read'
container: 'docker.io/archlinux:latest'
steps:
- name: 'Install packages'
run: 'pacman -Syu --noconfirm --needed ca-certificates curl file libidn2 make'
- name: 'Install packages (2nd stage)'
run: 'pacman -Syu --noconfirm --needed nawk'
- name: 'Print nawk version'
run: 'pacman -Qi nawk'
- name: 'Set default awk implementation'
run: 'ln -sf "$(command -v nawk)" /usr/bin/awk'
- name: 'Checkout project'
uses: 'actions/checkout@v4'
- name: 'Test project'
run: 'make test-all'

test-alpine-latest:
name: 'Test on Alpine Linux'
needs:
Expand Down Expand Up @@ -353,6 +331,28 @@ jobs:
- name: 'Test project'
run: 'make test-all'

test-alpine-latest-awk-nawk:
name: 'Test on Alpine Linux (nawk awk implementation)'
needs:
- 'lint-shellcheck-stable'
runs-on: 'ubuntu-latest'
permissions:
contents: 'read'
container: 'docker.io/alpine:latest'
steps:
- name: 'Install packages'
run: 'apk add --no-cache ca-certificates curl file idn2-utils make'
- name: 'Install packages (2nd stage)'
run: 'apk add --no-cache nawk --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community'
- name: 'Print nawk version'
run: 'apk info --no-cache nawk'
- name: 'Set default awk implementation'
run: 'ln -sf "$(command -v nawk)" /usr/bin/awk'
- name: 'Checkout project'
uses: 'actions/checkout@v4'
- name: 'Test project'
run: 'make test-all'

test-alpine-latest-awk-busybox-awk:
name: 'Test on Alpine Linux (BusyBox awk implementation)'
needs:
Expand Down Expand Up @@ -587,7 +587,6 @@ jobs:
name: 'Build on Arch Linux'
needs:
- 'test-archlinux-latest'
- 'test-archlinux-latest-awk-nawk'
runs-on: 'ubuntu-latest'
permissions:
contents: 'read'
Expand All @@ -613,6 +612,7 @@ jobs:
- 'test-alpine-latest-shell-busybox-ash'
- 'test-alpine-latest-awk-gawk'
- 'test-alpine-latest-awk-mawk'
- 'test-alpine-latest-awk-nawk'
- 'test-alpine-latest-awk-busybox-awk'
runs-on: 'ubuntu-latest'
permissions:
Expand Down

0 comments on commit bf882f2

Please sign in to comment.