Skip to content

Commit

Permalink
Update meson_ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mobin-2008 committed May 25, 2023
1 parent 64a50c7 commit 8f6e08e
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/meson_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,29 +70,29 @@ jobs:
- uses: actions/checkout@v3
if: ${{ github.repository == 'mobin-2008/dinit' }}
- name: Add i386 repos
if: ${{ matrix.arch == 'i386' && github.repository == 'mobin-2008/dinit' }}
if: ${{ matrix.arch == 'i386' && !github.repository == 'mobin-2008/dinit' }}
run: dpkg --add-architecture i386
- name: Getting depends (amd64)
if: ${{ matrix.arch == 'amd64' && github.repository == 'mobin-2008/dinit' }}
if: ${{ matrix.arch == 'amd64' && !github.repository == 'mobin-2008/dinit' }}
run: |
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install g++ meson m4 -y
- name: Getting depends (i386)
if: ${{ matrix.arch == 'i386' && github.repository == 'mobin-2008/dinit' }}
if: ${{ matrix.arch == 'i386' && !github.repository == 'mobin-2008/dinit' }}
run: |
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install g++:i386 meson m4:i386 g++:i386 -y
- name: Setup
if: ${{ github.repository == 'mobin-2008/dinit' }}
if: ${{ !github.repository == 'mobin-2008/dinit' }}
run: meson setup -Dunit-tests=true -Digr-tests=true dirbuild
- name: Build
if: ${{ github.repository == 'mobin-2008/dinit' }}
if: ${{ !github.repository == 'mobin-2008/dinit' }}
run: meson compile -C dirbuild
- name: Unit tests
if: ${{ github.repository == 'mobin-2008/dinit' }}
if: ${{ !github.repository == 'mobin-2008/dinit' }}
run: meson test -v --suite=unit_tests -C dirbuild
- name: Integration tests
if: ${{ github.repository == 'mobin-2008/dinit' }}
if: ${{ !github.repository == 'mobin-2008/dinit' }}
run: meson test -v --suite=igr_tests -C dirbuild

MacOS-latest_build:
Expand All @@ -105,24 +105,24 @@ jobs:

steps:
- uses: actions/checkout@v3
if: ${{ github.repository == 'mobin-2008/dinit' }}
if: ${{ !github.repository == 'mobin-2008/dinit' }}
- name: Install meson via pip3
if: ${{ github.repository == 'mobin-2008/dinit' }}
if: ${{ !github.repository == 'mobin-2008/dinit' }}
run: pip3 install meson
- name: Install ninja
if: ${{ github.repository == 'mobin-2008/dinit' }}
if: ${{ !github.repository == 'mobin-2008/dinit' }}
run: brew install ninja
- name: Setup
if: ${{ github.repository == 'mobin-2008/dinit' }}
if: ${{ !github.repository == 'mobin-2008/dinit' }}
run: meson setup -Dunit-tests=true -Digr-tests=true dirbuild
- name: Build
if: ${{ github.repository == 'mobin-2008/dinit' }}
if: ${{ !github.repository == 'mobin-2008/dinit' }}
run: meson compile -C dirbuild
- name: Unit tests
if: ${{ github.repository == 'mobin-2008/dinit' }}
run: meson test -v --suite=unit_tests -C dirbuild
- name: Integration tests
if: ${{ github.repository == 'mobin-2008/dinit' }}
if: ${{ !github.repository == 'mobin-2008/dinit' }}
run: meson test -v --suite=igr_tests -C dirbuild

Alpine-latest_build:
Expand All @@ -139,7 +139,7 @@ jobs:
- uses: actions/checkout@v3
- uses: uraimo/run-on-arch-action@v2.5.0
name: Getting depends & setup & build & unit & integration tests
if: ${{ github.repository == 'mobin-2008/dinit' }}
if: ${{ !github.repository == 'mobin-2008/dinit' }}
with:
arch: ${{ matrix.arch }}
distro: alpine_latest
Expand Down

0 comments on commit 8f6e08e

Please sign in to comment.