Skip to content

Commit 6335cfa

Browse files
committed
update workflows and fix adding artifact link as comment to PRs
1 parent 02230d0 commit 6335cfa

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/artifacts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
artifacts-url-comments:
99
name: add artifact links to pull request
10-
runs-on: windows-2019
10+
runs-on: ubuntu-latest
1111
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1212
steps:
1313
- name: add artifact links to pull request

.github/workflows/preview-apk.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@ name: Upload Preview APK
22

33
on: pull_request
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
8+
59
jobs:
610
build:
711
name: Upload Preview APK
812
runs-on: ubuntu-latest
913
steps:
10-
- name: Cancel Previous Runs
11-
uses: styfle/[email protected]
12-
with:
13-
access_token: ${{ github.token }}
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v5
1515
with:
1616
submodules: recursive
1717
- uses: Swatinem/rust-cache@v2
1818
with:
1919
working-directory: jni/deltachat-core-rust
20-
- uses: actions/setup-java@v3
20+
- uses: actions/setup-java@v5
2121
with:
2222
java-version: 17
2323
distribution: 'temurin'
2424
- uses: android-actions/setup-android@v3
25-
- uses: actions/cache@v3
25+
- uses: actions/cache@v4
2626
with:
2727
path: |
2828
~/.gradle/caches
@@ -35,16 +35,16 @@ jobs:
3535
with:
3636
ndk-version: r27
3737

38+
- name: Validate Gradle Wrapper
39+
uses: gradle/actions/wrapper-validation@v4
40+
3841
- name: Compile core
3942
env:
4043
ANDROID_NDK_ROOT: ${{ steps.setup-ndk.outputs.ndk-path }}
4144
run: |
4245
export PATH="${PATH}:${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/linux-x86_64/bin/"
4346
scripts/install-toolchains.sh && scripts/ndk-make.sh
4447
45-
- name: Validate Gradle Wrapper
46-
uses: gradle/wrapper-validation-action@v1
47-
4848
- name: Build APK
4949
run: ./gradlew --no-daemon assembleGplayDebug
5050

0 commit comments

Comments
 (0)