Skip to content

Commit

Permalink
CI: add package name to the matrix explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Rakitin committed Feb 2, 2024
1 parent ab267d3 commit 5199dc1
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ jobs:
matrix:
include:
- repo: https://github.com/Pylons/paginate
name: paginate
version: "0.5.6"
- repo: https://github.com/gorakhargosh/watchdog
name: watchdog
version: "2.3.1"

steps:
Expand All @@ -26,13 +28,6 @@ jobs:
with:
python-version: 3.11.2

- name: Define package to build
run: |
set -vxeo pipefail
# https://stackoverflow.com/a/3162500:
export PACKAGE_NAME="${${{ matrix.repo }}##*/}"
echo PACKAGE_NAME=${PACKAGE_NAME} >> $GITHUB_ENV
- name: Set up env vars for Emscripten
run: |
set -vxeuo pipefail
Expand All @@ -50,13 +45,13 @@ jobs:
run: |
set -vxeuo pipefail
git clone --depth 1 --branch ${{ matrix.version }} ${{ matrix.repo }}
cd ${{ env.PACKAGE_NAME }}
cd ${{ matrix.name }}
pyodide build
ls -la
tree .
- name: Upload built artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ env.PACKAGE_NAME }}
path: ${{ env.PACKAGE_NAME }}/dist/${{ env.PACKAGE_NAME }}-*.whl
name: ${{ matrix.name }}
path: ${{ matrix.name }}/dist/${{ matrix.name }}-*.whl

0 comments on commit 5199dc1

Please sign in to comment.