From 3f4750f26359cd6b8c8aabf63546be0ead3bc6a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 12 Mar 2024 15:37:17 +0200 Subject: [PATCH 1/2] Build sdist in CI --- .github/workflows/wheels.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index e3293eb..860636a 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -6,6 +6,28 @@ on: - "*" jobs: + sdist: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install libfuse-dev and pkg-config + run: sudo apt install -y libfuse-dev pkg-config + - name: Install Python build dependencies + run: python -m pip install --upgrade build + - name: Build sdist + run: python -m build --sdist + + - uses: actions/upload-artifact@v4 + with: + name: sdist + path: dist/*.tar.gz + if-no-files-found: error + retention-days: 2 + wheel: runs-on: ubuntu-20.04 env: From b934085fe0e1a79010ac22b7ac873c6b21f9c2b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 12 Mar 2024 15:59:19 +0200 Subject: [PATCH 2/2] Merge sdist artifact with wheel artifacts --- .github/workflows/wheels.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 860636a..d50d9e7 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -62,20 +62,26 @@ jobs: merge-artifacts: name: Download and create one artifact from all jobs - needs: wheel + needs: + - sdist + - wheel runs-on: ubuntu-20.04 steps: - - name: Download Artifacts + - name: Download sdist artifact uses: actions/download-artifact@v4 with: - path: wheelhouse + path: dist + name: sdist + + - name: Download wheel artifacts + uses: actions/download-artifact@v4 + with: + path: dist pattern: wheels-* merge-multiple: true - - run: ls -l wheelhouse - - uses: actions/upload-artifact@v4 with: - name: wheels - path: wheelhouse/*.whl + name: dist + path: dist if-no-files-found: error