Skip to content

Commit

Permalink
CI: Replace Alpine ARM targets with a amd64 one
Browse files Browse the repository at this point in the history
This is more useful.

Signed-off-by: Mobin Aydinfar <[email protected]>
  • Loading branch information
mobin-2008 committed Sep 17, 2024
1 parent ecd3514 commit 86b54fb
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 46 deletions.
37 changes: 15 additions & 22 deletions .github/workflows/meson_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,35 +117,28 @@ jobs:
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' ||
contains(github.event.pull_request.labels.*.name, 'meson') }}
runs-on: ubuntu-latest
container:
image: alpine:latest
strategy:
fail-fast: false # Upload src/igr-tests/*/output/* files in igr-tests
matrix:
include:
- arch: 'armv6'
- arch: 'armv7'
- arch: 'aarch64'
- arch: 'amd64'

steps:
- uses: actions/checkout@v4
- uses: uraimo/[email protected]
name: Getting depends & setup & build & unit & integration tests
with:
arch: ${{ matrix.arch }}
distro: alpine_latest
run: |
apk add ncurses
echo "$(tput bold) !---- ${{ matrix.arch }} BUILD ----!$(tput sgr0)"
echo "$(tput bold) ----Getting depends---- :$(tput sgr0) apk update && apk add meson g++ m4"
apk update
apk add meson g++ m4
echo "$(tput bold) ----Setup---- :$(tput sgr0) meson setup -Dunit-tests=true -Digr-tests=true dirbuild"
meson setup -Dunit-tests=true -Digr-tests=true dirbuild
echo "$(tput bold) ----Build---- :$(tput sgr0) meson compile -C dirbuild"
meson compile -C dirbuild
echo "$(tput bold) ----Unit tests---- :$(tput sgr0) meson test -v --suite=unit_tests -C dirbuild"
meson test -v --suite=unit_tests -C dirbuild
echo "$(tput bold) ----Integration tests---- :$(tput sgr0) meson test -v --suite=igr_tests -C dirbuild"
meson test -v --suite=igr_tests -C dirbuild
- name: Getting depends
run: |
apk update
apk add meson g++ m4
- name: Setup
run: meson setup -Dunit-tests=true -Digr-tests=true dirbuild
- name: Build
run: meson compile -C dirbuild
- name: Unit tests
run: meson test -v --suite=unit_tests -C dirbuild
- name: Integration tests
run: meson test -v --suite=igr_tests -C dirbuild
- name: Upload igr-tests output file(s) on failure
uses: actions/[email protected]
if: failure()
Expand Down
41 changes: 17 additions & 24 deletions .github/workflows/regular_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,37 +110,30 @@ jobs:
Alpine-latest_build:

runs-on: ubuntu-20.04
container:
image: alpine:latest
strategy:
fail-fast: false # Upload src/igr-tests/*/output/* files in igr-tests
matrix:
include:
- arch: 'armv6'
- arch: 'armv7'
- arch: 'aarch64'
- arch: 'amd64'

steps:
- uses: actions/checkout@v4
- uses: uraimo/[email protected]
name: Getting depends & build & unit tests & integration tests
with:
arch: ${{ matrix.arch }}
distro: alpine_latest
run: |
apk add ncurses
echo "$(tput bold) !---- ${{ matrix.arch }} BUILD ----!$(tput sgr0)"
echo "$(tput bold) ----Getting depends---- :$(tput sgr0) apk update && apk add make g++ m4 file"
apk update
apk add make g++ m4 file
echo "$(tput bold) ----Print g++ arch---- :$(tput sgr0) g++ -dumpmachine"
g++ -dumpmachine
echo "$(tput bold) ----Build---- :$(tput sgr0) make"
make
echo "$(tput bold) ----Print dinit executive file architecture---- :$(tput sgr0) file ./src/dinit"
file ./src/dinit
echo "$(tput bold) ----Unit tests---- :$(tput sgr0) make check"
make check
echo "$(tput bold) ----Integration tests---- :$(tput sgr0) make check-igr"
make check-igr
- name: Getting depends
run: |
apk update
apk add make g++ m4 file
- name: Print g++ architecture
run: g++ -dumpmachine
- name: Build
run: make
- name: Print dinit executive file architecture
run: file ./src/dinit
- name: Unit tests
run: make check
- name: Integration tests
run: make check-igr
- name: Upload igr-tests output file(s) on failure
uses: actions/[email protected]
if: failure()
Expand Down

0 comments on commit 86b54fb

Please sign in to comment.