From dc8edf6a1265f6d05bdded9c1bb3c0a543282cc8 Mon Sep 17 00:00:00 2001 From: Kingsley Collie Date: Mon, 3 Feb 2025 18:51:02 +0000 Subject: [PATCH] Add CI workflow to build source distribution --- .github/workflows/sdist.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/sdist.yml diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml new file mode 100644 index 0000000..a938ff9 --- /dev/null +++ b/.github/workflows/sdist.yml @@ -0,0 +1,35 @@ +# This workflow will install Python and build sdist + +name: sdist + +on: + workflow_dispatch: + pull_request: + push: + branches: + - master + - dev + +jobs: + build-dist: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: 3.13 + + - name: Build package + run: | + pip install build + # fake IDL_DIR to build source package without installing IDL + IDL_DIR=/fake-idl-dir python -m build --sdist . + + - name: Store source distribution as artifact + uses: actions/upload-artifact@v4 + with: + path: 'dist/idlbridge-*.tar.gz'