From 88b0e06e045db60f4c4a87e98934aba46ba2d28b Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Sun, 6 Oct 2024 11:08:39 -0400 Subject: [PATCH 1/4] simplifying CI: ubuntu install --- .github/workflows/ubuntu_install.yml | 31 ++++++++++++++-------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ubuntu_install.yml b/.github/workflows/ubuntu_install.yml index a955babba..9c7debc0f 100644 --- a/.github/workflows/ubuntu_install.yml +++ b/.github/workflows/ubuntu_install.yml @@ -1,45 +1,44 @@ name: Ubuntu 22.04 (Installation) - on: pull_request: - types: [opened, synchronize, reopened, ready_for_review] + types: + - opened + - synchronize + - reopened + - ready_for_review paths-ignore: - - '**.md' - - 'docs/**' + - "**.md" + - docs/** push: branches: - main paths-ignore: - - '**.md' - - 'docs/**' - + - "**.md" + - docs/** permissions: contents: read - concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true - jobs: ubuntu-build: runs-on: ubuntu-22.04 - strategy: - matrix: - include: - shared: [ON, OFF] steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - name: Setup Ninja run: sudo apt-get install ninja-build - name: Prepare - run: cmake -G Ninja -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCMAKE_INSTALL_PREFIX:PATH=destination -B build + run: cmake -G Ninja -DBUILD_SHARED_LIBS=ON + -DCMAKE_INSTALL_PREFIX:PATH=destination -B build - name: Build run: cmake --build build -j=4 - name: Install run: cmake --install build - name: Prepare test package - run: cmake -DCMAKE_INSTALL_PREFIX:PATH=../../destination -S tests/installation -B buildbabyada + run: cmake -DCMAKE_INSTALL_PREFIX:PATH=../../destination -S tests/installation + -B buildbabyada - name: Build test package run: cmake --build buildbabyada - name: Run example run: ./buildbabyada/main + From 89f4a45d40ae0808844973a64b726dbf69faae01 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Sun, 6 Oct 2024 18:33:16 -0400 Subject: [PATCH 2/4] Update .github/workflows/ubuntu_install.yml Co-authored-by: Yagiz Nizipli --- .github/workflows/ubuntu_install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu_install.yml b/.github/workflows/ubuntu_install.yml index 9c7debc0f..7b36e5aae 100644 --- a/.github/workflows/ubuntu_install.yml +++ b/.github/workflows/ubuntu_install.yml @@ -28,7 +28,7 @@ jobs: - name: Setup Ninja run: sudo apt-get install ninja-build - name: Prepare - run: cmake -G Ninja -DBUILD_SHARED_LIBS=ON + run: cmake -G Ninja -DBUILD_SHARED_LIBS=ON | -DCMAKE_INSTALL_PREFIX:PATH=destination -B build - name: Build run: cmake --build build -j=4 From c3b8b251ad67a0272778f255c26228af9c60a5d0 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Sun, 6 Oct 2024 18:33:22 -0400 Subject: [PATCH 3/4] Update .github/workflows/ubuntu_install.yml Co-authored-by: Yagiz Nizipli --- .github/workflows/ubuntu_install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu_install.yml b/.github/workflows/ubuntu_install.yml index 7b36e5aae..22723d960 100644 --- a/.github/workflows/ubuntu_install.yml +++ b/.github/workflows/ubuntu_install.yml @@ -35,7 +35,7 @@ jobs: - name: Install run: cmake --install build - name: Prepare test package - run: cmake -DCMAKE_INSTALL_PREFIX:PATH=../../destination -S tests/installation + run: cmake -DCMAKE_INSTALL_PREFIX:PATH=../../destination -S tests/installation | -B buildbabyada - name: Build test package run: cmake --build buildbabyada From 6b7a3aefbcdc01045fdf11afcb7194fd459807d8 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Mon, 7 Oct 2024 15:40:49 -0400 Subject: [PATCH 4/4] Update ubuntu_install.yml --- .github/workflows/ubuntu_install.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ubuntu_install.yml b/.github/workflows/ubuntu_install.yml index 22723d960..8579ac7e0 100644 --- a/.github/workflows/ubuntu_install.yml +++ b/.github/workflows/ubuntu_install.yml @@ -28,8 +28,7 @@ jobs: - name: Setup Ninja run: sudo apt-get install ninja-build - name: Prepare - run: cmake -G Ninja -DBUILD_SHARED_LIBS=ON | - -DCMAKE_INSTALL_PREFIX:PATH=destination -B build + run: cmake -G Ninja -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX:PATH=destination -B build - name: Build run: cmake --build build -j=4 - name: Install