Skip to content

Commit

Permalink
feat: update github action ci
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed Dec 19, 2023
1 parent cc1fd33 commit aa826d4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,33 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu16.04, ubuntu18.04 ]
gcc_version: [ '7', '8', '9', '10', '11' ]
os: [ ubuntu-20.04 ]
gcc: [ '7', '8', '9', '10', '11' ]
python: [ '3.9', '3.10', '3.11', '3.12' ]
build_type: [ Debug, Release ]

name: Build on ${{ matrix.os }} (${{ matrix.build_type }}) with GCC ${{ matrix.gcc_version }}
runs-on: ubuntu-latest
container:
image: conanio/gcc${{ matrix.gcc_version }}-${{ matrix.os }}
options: --user root
name: Build on ${{ matrix.os }} (${{ matrix.build_type }}) with GCC ${{ matrix.gcc }} for Python ${{ matrix.python}}
runs-on: ${{ matrix.os}}

steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up GCC
uses: egor-tensin/setup-gcc@v1
with:
version: ${{ matrix.gcc }}

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: 'pip'

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade conan cmake ninja
pip install conan cmake ninja
- name: Build with Conan
run: |
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ jobs:
fail-fast: false
matrix:
os: [ windows-2019, windows-2022 ]
python: [ '3.9', '3.10', '3.11', '3.12' ]
build_type: [ Debug, Release ]

name: Build on ${{ matrix.os }} (${{ matrix.build_type }})
name: Build on ${{ matrix.os }} (${{ matrix.build_type }}) for Python ${{ matrix.python }}
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -25,7 +26,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: ${{ matrix.python }}
cache: 'pip'

- name: Install Dependencies
Expand Down

0 comments on commit aa826d4

Please sign in to comment.