Skip to content

Commit

Permalink
CI: Clean up action conditions.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Feb 20, 2024
1 parent 7c9301f commit f125ae2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ jobs:
run: git submodule update --init --recursive

- name: Set up Python ${{ matrix.python-version }}
if: ${{ !startsWith(matrix.os, 'ubuntu') || startsWith(matrix.python-version, '3.') || startsWith(matrix.python-version, 'pypy') }}
if: startsWith(matrix.python-version, '3.') || startsWith(matrix.python-version, 'pypy') || !startsWith(matrix.os, 'ubuntu')
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Set up Python2 (Linux)
if: ${{ matrix.python-version == '2.7' && startsWith(matrix.os, 'ubuntu') }}
if: matrix.python-version == '2.7' && startsWith(matrix.os, 'ubuntu')
run: |
sudo ln -fs python2 /usr/bin/python
sudo apt-get update
Expand All @@ -106,7 +106,7 @@ jobs:
python -m pip install -U wheel tox virtualenv -r requirements.txt
- name: Set up Lua ${{ matrix.lua-version }}
if: ${{ contains(matrix.os, 'ubuntu') && !contains(matrix.lua-version, 'bundle') }}
if: contains(matrix.os, 'ubuntu') && matrix.lua-version != 'bundle'
run: sudo apt-get install lib${{ matrix.lua-version }}-dev

- name: Build wheel
Expand All @@ -125,9 +125,9 @@ jobs:
LDFLAGS: ${{ env.CFLAGS_LTO }}

- name: Upload wheels
if: ${{ contains(matrix.lua-version, 'bundle') }}
if: matrix.lua-version == 'bundle' && matrix.os == 'macos-latest'
uses: actions/upload-artifact@v4
with:
name: wheels-${{ runner.os }}-${{ matrix.lua-version }}-${{ matrix.python-version }}
name: wheels-${{ matrix.os }}-${{ matrix.python-version }}
path: dist/*.whl
if-no-files-found: ignore

0 comments on commit f125ae2

Please sign in to comment.