mirror of
https://github.com/foxhole-team/foxhole-guard.git
synced 2026-10-21 10:45:41 +02:00
ci: prepare native dependencies and migrate actions to Node 24
This commit is contained in:
@@ -27,7 +27,7 @@ runs:
|
||||
echo "revision=$revision" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: checkout pinned public FoxHole Core
|
||||
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
||||
uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
|
||||
with:
|
||||
repository: ${{ inputs.core-repository }}
|
||||
ref: ${{ steps.foxcore-pin.outputs.revision }}
|
||||
@@ -35,14 +35,14 @@ runs:
|
||||
persist-credentials: false
|
||||
|
||||
- name: setup Java
|
||||
uses: actions/setup-java@cf277c60eb25467037889841efdb72551f06f6c3 # v4
|
||||
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: "17"
|
||||
cache: gradle
|
||||
|
||||
- name: setup Gradle
|
||||
uses: gradle/actions/setup-gradle@0b6dd653ba04f4f93bf581ec31e66cbd7dcb644d # v4
|
||||
uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c # v5
|
||||
|
||||
- name: install the Rust toolchain pinned by the FoxHole Core workspace
|
||||
shell: bash
|
||||
@@ -102,6 +102,12 @@ runs:
|
||||
"build-tools;37.0.0" \
|
||||
"ndk;29.0.14206865"
|
||||
|
||||
- name: fetch pinned native dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
scripts/fetch-native-deps.sh
|
||||
|
||||
- name: install cargo-ndk and fetch locked Rust dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
@@ -32,9 +32,6 @@ on:
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
env:
|
||||
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
|
||||
|
||||
concurrency:
|
||||
group: android-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
@@ -47,7 +44,7 @@ jobs:
|
||||
timeout-minutes: 90
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
||||
uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
|
||||
with:
|
||||
submodules: recursive
|
||||
persist-credentials: false
|
||||
@@ -90,7 +87,7 @@ jobs:
|
||||
timeout-minutes: 90
|
||||
steps:
|
||||
- name: checkout verified dev commit
|
||||
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
||||
uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
|
||||
with:
|
||||
submodules: recursive
|
||||
persist-credentials: false
|
||||
@@ -189,7 +186,7 @@ jobs:
|
||||
"$source_tree"
|
||||
|
||||
- name: upload immutable candidate
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
|
||||
with:
|
||||
name: foxhole-app-${{ github.sha }}
|
||||
path: ${{ runner.temp }}/foxhole-release-candidate/*
|
||||
@@ -199,7 +196,7 @@ jobs:
|
||||
|
||||
# Mapping and native symbols stay authenticated Actions artifacts, never attached to the public release.
|
||||
- name: retain private diagnostics
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
|
||||
with:
|
||||
name: foxhole-private-diagnostics-${{ github.sha }}
|
||||
path: |
|
||||
|
||||
@@ -12,9 +12,6 @@ permissions:
|
||||
contents: write
|
||||
id-token: write
|
||||
|
||||
env:
|
||||
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
|
||||
|
||||
concurrency:
|
||||
group: release-main
|
||||
cancel-in-progress: false
|
||||
@@ -27,7 +24,7 @@ jobs:
|
||||
timeout-minutes: 20
|
||||
steps:
|
||||
- name: checkout main
|
||||
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
||||
uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
@@ -123,7 +120,7 @@ jobs:
|
||||
run: sdkmanager "build-tools;37.0.0"
|
||||
|
||||
- name: download exact dev candidate
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
|
||||
with:
|
||||
name: ${{ steps.candidate.outputs.artifact_name }}
|
||||
path: ${{ runner.temp }}/foxhole-release-candidate
|
||||
@@ -170,7 +167,7 @@ jobs:
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: attest exact release files
|
||||
uses: actions/attest-build-provenance@96b4a1ef7235a096b17240c259729fdd70c83d45 # v2
|
||||
uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4
|
||||
with:
|
||||
subject-path: ${{ runner.temp }}/foxhole-release-candidate/*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user