Skip to content

Commit

Permalink
Update Github Actions actions and pin to specific commits
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Gunnerson <[email protected]>
  • Loading branch information
chenxiaolong committed Dec 13, 2024
1 parent 034c4d0 commit 0c46606
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
on:
push:
branches:
Expand All @@ -10,15 +9,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: true

- name: Validate gradle wrapper checksum
uses: gradle/actions/wrapper-validation@v3
uses: gradle/actions/wrapper-validation@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4.2.1

- name: Set up JDK 21
uses: actions/setup-java@v4
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
with:
distribution: 'temurin'
java-version: 21
Expand All @@ -38,7 +37,7 @@ jobs:
rustup target add x86_64-linux-android
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5

# We currently use the old eagerly evaluated android.ndkDirectory value in
# app/build.gradle.kts instead of the new lazily evaluated
Expand Down Expand Up @@ -87,7 +86,7 @@ jobs:
android_api: '31'
steps:
- name: Check out repository
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
# For git describe
fetch-depth: 0
Expand Down Expand Up @@ -116,7 +115,7 @@ jobs:
done
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
with:
key: ${{ matrix.artifact.name }}

Expand Down Expand Up @@ -165,7 +164,7 @@ jobs:
esac
- name: Archive artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: custota-tool-${{ steps.get_version.outputs.version }}-${{ matrix.artifact.name }}
path: |
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/deny.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
name: cargo-deny
on:
push:
Expand All @@ -11,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Run cargo-deny
uses: EmbarkStudios/cargo-deny-action@v1
uses: EmbarkStudios/cargo-deny-action@e2f4ede4a4e60ea15ff31bc0647485d80c66cfba # v2.0.4
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
on:
push:
# Uncomment to test against a branch
Expand All @@ -24,10 +23,10 @@ jobs:
echo "version=${version}" >> "${GITHUB_OUTPUT}"
- name: Check out repository
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Create release
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@7b4da11513bf3f43f9999e90eabced41ab8bb048 # v2.2.0
with:
tag_name: v${{ steps.get_version.outputs.version }}
name: Version ${{ steps.get_version.outputs.version }}
Expand Down

0 comments on commit 0c46606

Please sign in to comment.