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
19 changes: 19 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Every `uses:` in .github/workflows is pinned to a full commit SHA, with the release it came from
# in a trailing comment (`uses: actions/checkout@<sha> # v7.0.1`). A tag can be moved to point at
# different code after it was reviewed; a commit cannot. Dependabot reads the comment and moves
# both together, so this is what keeps the pins from going stale.
#
# A Dependabot PR touches only .github/, and the build and static checks do not run for that path
# (AGENTS.md rule 16). Run them by hand against its branch before merging.
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
groups:
github-actions:
patterns:
- "*"
commit-message:
prefix: CI
10 changes: 5 additions & 5 deletions .github/workflows/adi-on-bionic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
name: Build the probe and stubs with the NDK
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

# Both ABIs are cross-compiled here: the arm64 runner image has no Android SDK, and the NDK
# ships no linux-aarch64 host toolchain.
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
done
file dist/*/*/*

- uses: actions/upload-artifact@v7
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: probe
path: dist/
Expand Down Expand Up @@ -113,9 +113,9 @@ jobs:
extract: extract_bionic_apex.sh
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- uses: actions/download-artifact@v8
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: probe
path: dist
Expand All @@ -127,7 +127,7 @@ jobs:

# The runtime is 46-65 MB once trimmed to what is needed, against a 430-720 MB image, so it is
# cached. Keyed on the image and the script that extracts it. Saved only by a passing job.
- uses: actions/cache@v6
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
id: runtime-cache
with:
path: runtime
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/build-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ jobs:
timeout-minutes: 45
steps:
- name: Checkout code
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Set Up JDK
uses: actions/setup-java@v6
uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0
with:
distribution: 'zulu'
java-version: '17'
Expand Down Expand Up @@ -175,7 +175,7 @@ jobs:
# Costs nothing on a green run; it is the difference between a diagnosis and a guess.
- name: Upload logcat and raw results
if: always()
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: instrumented-logcat
path: |
Expand All @@ -185,7 +185,7 @@ jobs:

- name: Upload test reports
if: always()
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: instrumented-test-reports
path: app/build/reports/androidTests/
Expand All @@ -196,7 +196,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Set current date as env variable
run: echo "date_today=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
Expand All @@ -206,7 +206,7 @@ jobs:
run: echo "repository_name=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV

- name: Set Up JDK
uses: actions/setup-java@v6
uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0
with:
distribution: 'zulu' # See 'Supported distributions' for available options
java-version: '17'
Expand Down Expand Up @@ -259,7 +259,7 @@ jobs:
# Covers app/src/main/python (the module Chaquopy packages into the APK).
# Runs on plain CPython - it imports no Android or Java types.
- name: Set up Python
uses: actions/setup-python@v7
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: '3.12'

Expand All @@ -276,7 +276,7 @@ jobs:
# Upload Artifact Build
# Noted For Output [main_project_module]/build/outputs/apk/debug/
- name: Upload APK Debug
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: ${{ env.date_today }} - ${{ env.app_name }} - ${{ env.repository_name }} - APK(s) debug generated
path: ${{ env.main_project_module }}/build/outputs/apk/debug/
Expand All @@ -288,7 +288,7 @@ jobs:
# and committed. Always, so a failed run that still got far enough is not a dead end.
- name: Upload the exported Room schemas
if: always()
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: room-schemas
path: ${{ env.main_project_module }}/schemas/
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

# Nothing rewrites versionName from the tag: it is what the app reports about itself in
# Settings and in bug reports, and it is baked into the APK. So a tag that disagrees
Expand All @@ -57,7 +57,7 @@ jobs:
run: echo "repository_name=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV

- name: Set Up JDK
uses: actions/setup-java@v6
uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0
with:
distribution: 'zulu' # See 'Supported distributions' for available options
java-version: '17'
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:

# Covers app/src/main/python, the module Chaquopy packages into the APK.
- name: Set up Python
uses: actions/setup-python@v7
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: '3.12'

Expand Down Expand Up @@ -137,14 +137,14 @@ jobs:
# Upload Artifact Build
# Noted For Output [main_project_module]/build/outputs/apk/debug/
- name: Upload APK Debug
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: ${{ env.date_today }} - ${{ env.app_name }} - ${{ env.repository_name }} - APK(s) debug generated
path: ${{ env.main_project_module }}/build/outputs/apk/debug/

# Noted For Output [main_project_module]/build/outputs/apk/release/
- name: Upload APK Release
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: ${{ env.date_today }} - ${{ env.app_name }} - ${{ env.repository_name }} - APK(s) release generated
path: ${{ env.main_project_module }}/build/outputs/apk/release/
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
echo "UNICORN_SOURCE=unicorn-$(basename "$url")" >> "$GITHUB_ENV"

- name: Upload APK Release Asset to GitHub Release
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@8a0cd651e5b2365bd640854a3fa5dfc70e4875f3 # v3.0.4
if: github.event_name == 'release'
with:
files: |
Expand All @@ -183,7 +183,7 @@ jobs:

# Noted For Output [main_project_module]/build/outputs/bundle/release/
# - name: Upload AAB (App Bundle) Release - ${{ env.repository_name }}
# uses: actions/upload-artifact@v7
# uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
# with:
# name: ${{ env.date_today }} - ${{ env.app_name }} - ${{ env.repository_name }} - App bundle(s) AAB release generated
# path: ${{ env.main_project_module }}/build/outputs/bundle/release/
4 changes: 2 additions & 2 deletions .github/workflows/check-adi-libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- uses: actions/setup-python@v7
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: '3.12'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-gsa-edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- uses: actions/setup-python@v7
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: '3.12'

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/exporter-build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Set up Python ${{ env.PYINSTALLER_PYTHON_VER }}
uses: actions/setup-python@v7
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ env.PYINSTALLER_PYTHON_VER }}

- name: Install uv
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0

# --frozen: exactly what uv.lock records. A build check that resolved something else would be
# checking a bundle nobody is going to ship.
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/macadi-host.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ jobs:
host:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- uses: actions/setup-python@v5
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"

Expand Down Expand Up @@ -66,9 +66,9 @@ jobs:
against-adi-core:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- uses: actions/setup-python@v5
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"

Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/macos-exporter-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

# Nothing in this pipeline rewrites VERSION in python/exporter/version.py: the tag names the
# artifact, and the app keeps whatever was committed. So a tag that disagrees with the
Expand All @@ -75,12 +75,12 @@ jobs:

# Do everything strictly for the python version used in the release build...
- name: Set up Python ${{ env.PYINSTALLER_PYTHON_VER }}
uses: actions/setup-python@v7
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ env.PYINSTALLER_PYTHON_VER }}

- name: Install uv
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0

# --frozen: exactly what uv.lock records, or fail. FindMy.py is pinned there by commit,
# because it is a branch rather than a release - so a release build cannot silently pick up
Expand Down Expand Up @@ -186,15 +186,15 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Set up Python ${{ env.PYINSTALLER_PYTHON_VER }} (${{ matrix.arch }})
uses: actions/setup-python@v7
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ env.PYINSTALLER_PYTHON_VER }}

- name: Install uv
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0

# tkinter is not part of a stock Python on macOS or Linux, and the wizard is a tkinter app -
# without this the build succeeds and the binary dies at import on a user's machine. Windows
Expand Down Expand Up @@ -396,7 +396,7 @@ jobs:
echo "UPLOAD_PATH=${{ github.workspace }}/output/$ASSET" >> $GITHUB_ENV

- name: Upload PyInstaller Artifact
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: ${{ env.UPLOAD_ASSET }}
path: ${{ env.UPLOAD_PATH }}
Expand All @@ -408,7 +408,7 @@ jobs:
# here, and failed with 403 "Resource not accessible by integration" after both binaries
# had already been built. The v1.0.5 release published with no assets attached.
- name: Upload Release Asset to GitHub Release
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@8a0cd651e5b2365bd640854a3fa5dfc70e4875f3 # v3.0.4
with:
files: ${{ env.UPLOAD_PATH }}
# Explicit because a manual run is not on a tag: github.ref is the branch, and without
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/macos-scripts-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v7
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ matrix.python-version }}

- name: Install uv
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0

# --frozen: install exactly what uv.lock records and fail if it disagrees with pyproject.toml,
# rather than quietly resolving something else. That is what makes the lock mean anything -
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/native-stubs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
runs-on: ${{ matrix.runner }}

steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

# clang, because the NDK is clang: the stubs should be compiled by the compiler family that
# builds them for the APK. Both are preinstalled on GitHub's Ubuntu images.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/static-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Set up Python
uses: actions/setup-python@v7
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: '3.12'

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/update-contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ jobs:
&& github.event.pull_request.user.type != 'Bot')

steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- uses: actions/setup-python@v7
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: '3.12'

Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
fi

- name: Open a PR if anything changed
uses: peter-evans/create-pull-request@v8
uses: peter-evans/create-pull-request@3ffccacd46053766916f087ce41d627c0b8cf2d1 # v8.1.3
with:
commit-message: Update the bundled contributor list
title: Update the bundled contributor list
Expand Down
Loading
Loading