Skip to content

Commit

Permalink
Python 3.12: Try to get packaging working.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyzyx committed Apr 27, 2024
1 parent 22599fe commit 9839890
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/_build-and-cache-by-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,30 @@ jobs:
options: --privileged

steps:
- name: Check to see if we've already built this version
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
id: check
with:
key: "${{ inputs.package-name }}-${{ inputs.package-version }}-ubuntu-${{ matrix.release.name }}-${{ matrix.arch.id }}"
path: "packages/python3.12/dist"
lookup-only: true

- name: Git clone
if: steps.check.outputs.cache-hit != 'true'
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
ref: ${{ github.base_ref }}

- name: Compile the software from source
if: steps.check.outputs.cache-hit != 'true'
working-directory: packages/${{ inputs.package-name }}
env:
PKG_VER: "${{ inputs.package-version }}"
run: |
bash "./compile-${OS_DIST}-${OS_DIST_NAME}.sh"
- name: Package the compiled software
if: steps.check.outputs.cache-hit != 'true'
working-directory: packages/${{ inputs.package-name }}
env:
GPG_KEY_B64: ${{ secrets.GPG_KEY_B64 }}
Expand All @@ -77,6 +88,7 @@ jobs:
ls -lahF ./dist
- name: Cache the packages
if: steps.check.outputs.cache-hit != 'true'
uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
id: cache-packages
with:
Expand Down

0 comments on commit 9839890

Please sign in to comment.