Skip to content

Commit

Permalink
Python 3.12: Try to get arm64 builds working.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyzyx committed Apr 26, 2024
1 parent c392907 commit 74deba0
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/_build-and-cache-by-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ jobs:
- name: Compile the software from source
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_KEY_B64: ${{ secrets.GPG_KEY_B64 }}
NFPM_PASSPHRASE: "${{ secrets.GPG_PWD }}"
PKG_VER: "${{ inputs.package-version }}"
run: |
docker run \
Expand All @@ -66,20 +68,9 @@ jobs:
--workdir ${{ github.workspace }} \
--platform linux/${{ matrix.arch }} \
"ghcr.io/northwood-labs/package-builder/ubuntu-v${{ matrix.release.version }}:latest" \
bash packages/${{ inputs.package-name }}/compile-ubuntu-${{ matrix.release.name }}.sh "${{ inputs.package-version }}"
- name: Package the compiled software
working-directory: packages/${{ inputs.package-name }}
env:
GPG_KEY_B64: ${{ secrets.GPG_KEY_B64 }}
NFPM_PASSPHRASE: "${{ secrets.GPG_PWD }}"
PKG_VER: "${{ inputs.package-version }}"
run: |
# Decode the contents into files.
echo -n "${GPG_KEY_B64}" | base64 --decode > 3C7658F0.asc
mkdir -p ./dist
nfpm package --config nfpm-${OS_DIST}-${OS_DIST_NAME}.yaml --packager deb --target ./dist
bash packages/${{ inputs.package-name }}/compile-ubuntu-${{ matrix.release.name }}.sh "${{ inputs.package-version }}" && \
echo -n "${GPG_KEY_B64}" | base64 --decode > 3C7658F0.asc && \
mkdir -p ./dist && nfpm package --config nfpm-${OS_DIST}-${OS_DIST_NAME}.yaml --packager deb --target ./dist
- name: Cache the packages
uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
Expand Down

0 comments on commit 74deba0

Please sign in to comment.