-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Replace Alpine ARM targets with a amd64 one
This is more useful. Signed-off-by: Mobin Aydinfar <[email protected]>
- Loading branch information
1 parent
ecd3514
commit 86b54fb
Showing
2 changed files
with
32 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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() | ||
|