From fe3398ebb93691f68f15b45d308136ec75f89622 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Tue, 13 Feb 2024 11:42:30 +0100 Subject: [PATCH 1/2] Update artifact actions to v4 --- .github/workflows/build.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 143e12fe..b5efcee2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,10 +68,11 @@ jobs: package-dir: mypy only: ${{ matrix.only }} - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: - name: dist + name: dist-${{ matrix.only }} path: ./wheelhouse/*.whl + overwrite: true build_sdist_python_wheel: name: sdist and python wheel @@ -100,12 +101,14 @@ jobs: cd mypy pip install --upgrade setuptools build python -m build - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: - name: dist + name: dist-sdist_python_wheel path: | mypy/dist/*.whl mypy/dist/*.tar.gz + overwrite: true + build_wasm_wheel: name: WASM wheel for 3.10 runs-on: ubuntu-latest @@ -154,21 +157,24 @@ jobs: - name: Run WASM smoke test run: | node wasm_test.js - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: - name: dist + name: dist-wasm_wheel path: | mypy/dist/*.whl + overwrite: true + release: name: create release - needs: [build_wheels, build_sdist_python_wheel] + needs: [build_wheels, build_sdist_python_wheel, build_wasm_wheel] runs-on: ubuntu-latest steps: - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: - name: dist + pattern: dist-* path: dist + merge-multiple: true - name: Release if: ${{ github.event_name != 'pull_request' }} # https://github.com/actions/upload-release-asset/issues/47 From 67b606e1f849029f74ecbff2b5493acb070ac4f0 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Fri, 5 Apr 2024 09:21:24 +0200 Subject: [PATCH 2/2] Update remaining actions for Node 20 --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b5efcee2..671a9d72 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -79,7 +79,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 name: Install Python with: python-version: "3.9" @@ -114,11 +114,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 name: Install Python with: python-version: "3.10" - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 18.5.0 # pyodide tests with this version - name: Install emscripten @@ -178,7 +178,7 @@ jobs: - name: Release if: ${{ github.event_name != 'pull_request' }} # https://github.com/actions/upload-release-asset/issues/47 - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: github-token: ${{secrets.GITHUB_TOKEN}} script: |