Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 22 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
outputs:
changed-files: ${{ toJSON(steps.changed-files.outputs) }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
- name: Get Changed Files
id: changed-files
uses: dorny/paths-filter@v3
uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4
with:
token: ${{ github.token }}
list-files: json
Expand Down Expand Up @@ -111,20 +111,29 @@ jobs:
- deploy-python-package
- create-release
steps:
- name: Get workflow information
id: get-workflow-info
uses: technote-space/workflow-conclusion-action@v3

- name: Set Pipeline Exit Status
shell: bash
# Roll up the results of the needed jobs into a single pass/fail
# for the branch-protection required check. Replaces
# technote-space/workflow-conclusion-action, which was abandoned
# on node16 and only emitted this same rollup. `skipped` is
# benign here -- deploy-python-package and create-release
# intentionally skip on non-release runs.
run: |
if [ "${{ steps.get-workflow-info.outputs.conclusion }}" != "success" ]; then
exit 1
else
exit 0
fi
fail=0
for result in \
"${{ needs.pre-commit.result }}" \
"${{ needs.test.result }}" \
"${{ needs.deploy-python-package.result }}" \
"${{ needs.create-release.result }}" \
; do
case "$result" in
success|skipped) ;;
*) echo "non-success job result: $result" >&2; fail=1 ;;
esac
done
exit "$fail"

- name: Done
if: always()
run:
echo "All workflows finished"
run: echo "All workflows finished"
6 changes: 3 additions & 3 deletions .github/workflows/deploy-package-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ jobs:
environment: release
steps:
- name: Download Source Tarballs
uses: actions/download-artifact@v4
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
with:
pattern: Source Tarball *
path: dist
merge-multiple: true

- name: Download Python Wheels
uses: actions/download-artifact@v4
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
with:
pattern: Python Wheel *
path: dist
Expand All @@ -26,7 +26,7 @@ jobs:
run: ls -la dist/

- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # release/v1
with:
verbose: true
print-hash: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:
contents: write
steps:
- name: Download Source Tarballs
uses: actions/download-artifact@v4
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
with:
pattern: Source Tarball *
path: dist
merge-multiple: true

- name: Download Python Wheels
uses: actions/download-artifact@v4
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
with:
pattern: Python Wheel *
path: dist
Expand All @@ -32,7 +32,7 @@ jobs:
run: ls -la dist/

- name: Create Release
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@8a0cd651e5b2365bd640854a3fa5dfc70e4875f3 # v3
with:
tag_name: "v${{ inputs.version }}"
name: "Release v${{ inputs.version }}"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/package-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- pkg: ppbt-cross-x86_64-linux-gnu
pkg_dir: packages/cross-x86_64-linux-gnu
steps:
- uses: actions/checkout@master
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
- name: Install build
run: |
python -m pip install --upgrade pip
Expand All @@ -48,7 +48,7 @@ jobs:
python3 -m build -s

- name: Python Build Artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
with:
name: Source Tarball ${{ matrix.pkg }}
path: ${{ matrix.pkg_dir }}/dist/*
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- uses: actions/checkout@master
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5

- name: Update Apt
run: >-
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
${{ inputs.cmd }}

- name: Python Build Artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
if: always()
with:
name: Python Wheel ${{ matrix.pkg }} ${{ matrix.host }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pre-commit-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
sudo apt-get update
sudo apt-get install -y git gcc make zlib1g-dev libc-dev libffi-dev g++ libxml2-dev libxslt-dev libcurl4-openssl-dev libssl-dev libgnutls28-dev

- uses: actions/checkout@v4
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
with:
fetch-depth: 0

- name: Set up Python 3.11
uses: actions/setup-python@v5
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
with:
python-version: "3.11"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
runs-on: ${{ matrix.runs-on }}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5

- name: Set up Python 3.10
uses: actions/setup-python@v5
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
with:
python-version: "3.10"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-package-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
runs-on: ${{ matrix.runs-on }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5

- name: Set up Python 3.10
uses: actions/setup-python@v4
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
with:
python-version: "3.10"

Expand Down
2 changes: 1 addition & 1 deletion packages/cross-aarch64-linux-gnu/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = ppbt-cross-aarch64-linux-gnu
version = attr: ppbt_cross_aarch64_linux_gnu.__version__
author = Daniel A. Wozniak
author_email = <daniel.wozniak@broadcom.com>
long-description-content-type = text/markdown
long_description_content_type = text/markdown
long_description = file: README.md
description = Portable Python Build Toolchain - aarch64-linux-gnu cross toolchain
license = Apache License 2.0
Expand Down
2 changes: 1 addition & 1 deletion packages/cross-x86_64-linux-gnu/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = ppbt-cross-x86_64-linux-gnu
version = attr: ppbt_cross_x86_64_linux_gnu.__version__
author = Daniel A. Wozniak
author_email = <daniel.wozniak@broadcom.com>
long-description-content-type = text/markdown
long_description_content_type = text/markdown
long_description = file: README.md
description = Portable Python Build Toolchain - x86_64-linux-gnu cross toolchain
license = Apache License 2.0
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = ppbt
version = attr: ppbt.__version__
author = Daniel A. Wozniak
author_email = <daniel.wozniak@broadcom.com>
long-description-content-type = text/markdown
long_description_content_type = text/markdown
long_description = file: README.md
description = Portable Python Build Toolchain
license = Apache License 2.0
Expand Down
Loading