From 29aac140fe9fdf688149da8323980f30e177fbac Mon Sep 17 00:00:00 2001 From: Ryan Mast Date: Wed, 4 Mar 2020 20:52:35 -0800 Subject: [PATCH] Get the full repository history for versioning --- .github/workflows/pythonpackage.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 965a092..ac5935b 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -5,11 +5,14 @@ on: types: published push: +# NOTE: These jobs *must* use actions/checkout@v1 for full history, +# or run git fetch --prune --unshallow for versioning to work jobs: build-linux: runs-on: ubuntu-latest container: quay.io/pypa/manylinux2010_x86_64 steps: + # The manylinux2010 container only works with actions/checkout@v1 - uses: actions/checkout@v1 - name: Create wheels run: | @@ -25,6 +28,7 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v2 + - run: git fetch --prune --unshallow - name: Setup macOS SDK if: runner.os == 'macOS' run: ./.github/workflows/setup-macos-10.9-sdk.sh @@ -51,6 +55,7 @@ jobs: winarch: win32 steps: - uses: actions/checkout@v2 + - run: git fetch --prune --unshallow - name: Create wheels run: | source ./helics-pip/packaging_scripts/setup-Windows.sh "$(cat HELICS_VERSION)" "${{ matrix.winarch }}" @@ -66,6 +71,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - run: git fetch --prune --unshallow - name: Build source distribution run: | HELICS_VERSION=$(cat HELICS_VERSION)