Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Update GitHub Actions to use Node.js 20 #22

Merged
merged 1 commit into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
- name: Restore cached BlazingMQ build artifacts
run: tar xzf blazingmq_artifacts.tar.gz
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Create virtual environment
Expand Down Expand Up @@ -155,7 +155,7 @@ jobs:
- name: Restore cached BlazingMQ build artifacts
run: tar xzf blazingmq_artifacts.tar.gz
- name: Set up Python 3.9
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Create virtual environment
Expand Down Expand Up @@ -203,7 +203,7 @@ jobs:
- name: Restore cached BlazingMQ build artifacts
run: tar xzf blazingmq_artifacts.tar.gz
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Create virtual environment
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,24 @@ jobs:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Build sdist
env:
BLAZINGMQ_PYTHON_NO_PKGCONFIG: ’1’
run: pipx run build --sdist

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: tests
path: tests

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: bin
path: bin
Expand Down Expand Up @@ -65,19 +65,19 @@ jobs:
cibw_arch: ${{ fromJSON(needs.choose_architectures.outputs.cibw_arches) }}

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: dist
path: dist
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: tests
path: tests
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: bin
path: bin
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-qemu-action@v3
if: runner.os == 'Linux'
name: Set up QEMU
- name: Extract sdist
Expand All @@ -87,14 +87,14 @@ jobs:
run: |
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
- name: Build wheels
uses: pypa/cibuildwheel@v2.15.0
uses: pypa/cibuildwheel@v2.16.2
env:
CIBW_ARCHS_LINUX: ${{ matrix.cibw_arch }}
CIBW_BUILD: ${{ matrix.cibw_python }}
CIBW_PRERELEASE_PYTHONS: True
CIBW_TEST_COMMAND: python3 -m pytest {project}/tests/unit
CIBW_TEST_REQUIRES: pytest mock pkgconfig
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: dist
path: ./wheelhouse/*.whl
Expand All @@ -112,15 +112,15 @@ jobs:
cibw_arch: ["x86_64"]

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: dist
path: dist
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: tests
path: tests
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: bin
path: bin
Expand All @@ -132,7 +132,7 @@ jobs:
run: |
echo "CFLAGS=-target arm64-apple-macos12" >> $GITHUB_ENV
- name: Build wheels
uses: pypa/cibuildwheel@v2.15.0
uses: pypa/cibuildwheel@v2.16.2
env:
CIBW_ARCHS_MACOS: ${{ matrix.cibw_arch }}
CIBW_BUILD: ${{ matrix.cibw_python }}
Expand All @@ -142,7 +142,7 @@ jobs:
CIBW_TEST_REQUIRES: pytest mock pkgconfig
MACOSX_DEPLOYMENT_TARGET: "12.0"

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: dist
path: ./wheelhouse/*.whl
Expand All @@ -152,7 +152,7 @@ jobs:
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: dist
path: dist
Expand Down
Loading