From 035782edfa123802a156592b4a6310b2958c6f2d Mon Sep 17 00:00:00 2001 From: Saurabh Pradhan Date: Mon, 25 Nov 2024 23:51:36 +0100 Subject: [PATCH] update CI actions --- .github/workflows/check-multi-platform.yml | 56 ++++++---------------- 1 file changed, 14 insertions(+), 42 deletions(-) diff --git a/.github/workflows/check-multi-platform.yml b/.github/workflows/check-multi-platform.yml index 2281183..8a5264f 100644 --- a/.github/workflows/check-multi-platform.yml +++ b/.github/workflows/check-multi-platform.yml @@ -1,52 +1,24 @@ # This starter workflow is for a CMake project running on multiple platforms. There is a different starter workflow if you just want a single platform. # See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml -name: CMake on multiple platforms +name: Check on multiple platforms on: push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] + branches: + - main jobs: build: - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest + steps: + - name: build + ./debian.sh - strategy: - # Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable. - fail-fast: false + publish: + needs: [build] + runs-on: ubuntu-latest + environment: production + steps: + - name: publish + ./startup.sh - # Set up a matrix to run the following 3 configurations: - # 1. - # 2. - # 3. - # - # To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list. - matrix: - os: [ubuntu-latest, ubuntu-24.04, ubuntu-22.04, ubuntu-20.04] # add more os list - build_type: [Release] - c_compiler: [gcc, clang, cl] - include: - - os: windows-latest - c_compiler: cl - cpp_compiler: cl - - os: ubuntu-latest - c_compiler: gcc - cpp_compiler: g++ - - os: ubuntu-latest - c_compiler: clang - cpp_compiler: clang++ - exclude: - - os: windows-latest - c_compiler: gcc - - os: windows-latest - c_compiler: clang - - os: ubuntu-latest - c_compiler: cl - - - name: Install sys-packages - # Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator). - run: ./debian.sh - - - name: Generic Packages - run: ./startup.sh