Skip to content

Commit

Permalink
Get the full repository history for versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
nightlark committed Mar 5, 2020
1 parent 837e797 commit 29aac14
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand All @@ -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 }}"
Expand All @@ -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)
Expand Down

0 comments on commit 29aac14

Please sign in to comment.