From ad42558a0cb2ba702db3ab2742621547235de9e6 Mon Sep 17 00:00:00 2001 From: topazus Date: Sun, 23 Jul 2023 21:13:38 +0800 Subject: [PATCH 1/2] Add Fedora CI --- .github/workflows/build-and-test.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 1ab63c1159..41118142c7 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -31,7 +31,7 @@ jobs: # .travis.yml. # # See . - + strategy: matrix: os: [ubuntu-latest, macos-latest] @@ -49,6 +49,21 @@ jobs: - run: make - run: make test + fedora: + strategy: + fail-fast: true + runs-on: ubuntu-latest + container: fedora:rawhide + + # See design.mps.tests.ci.run.posix. + steps: + - name: Install build tools + run: dnf -y install gcc-c++ make + - uses: actions/checkout@v3 + - run: CC=${{ matrix.compiler }} ./configure + - run: make + - run: make test + windows: runs-on: windows-latest @@ -94,10 +109,10 @@ jobs: # publish, distribute, sublicense, and/or sell copies of the Software, # and to permit persons to whom the Software is furnished to do so, # subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND From a4d92ec7258a9d24f72f9f4d8496996bb1024ae9 Mon Sep 17 00:00:00 2001 From: topazus Date: Sun, 23 Jul 2023 21:56:29 +0800 Subject: [PATCH 2/2] fix --- .github/workflows/build-and-test.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 41118142c7..c83a376801 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -51,14 +51,16 @@ jobs: fedora: strategy: - fail-fast: true + matrix: + compiler: [clang, gcc] + runs-on: ubuntu-latest container: fedora:rawhide # See design.mps.tests.ci.run.posix. steps: - name: Install build tools - run: dnf -y install gcc-c++ make + run: dnf -y install gcc-c++ clang make - uses: actions/checkout@v3 - run: CC=${{ matrix.compiler }} ./configure - run: make