Skip to content

Commit

Permalink
Modernize the CI of fbjni
Browse files Browse the repository at this point in the history
Summary:
I'm doing a pass and modernizing GitHub Actions setup:
- Update actions to use the latest versions (e.g. checkout v3)
- Updated jobs to use gradle/gradle-build-action which adds proper caching

Reviewed By: luluwu2032

Differential Revision: D46844314

fbshipit-source-id: f779bdc0e63eae29c88599359a0f342c0e21cbca
  • Loading branch information
cortinico authored and facebook-github-bot committed Jun 23, 2023
1 parent 4407d37 commit cf86584
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,17 @@ on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: set up JDK 1.8
uses: actions/setup-java@v1
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 1.8
java-version: 11
distribution: 'zulu'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build with Gradle
run: |
./gradlew assembleDebug
run: ./gradlew assembleDebug
- name: Run tests
run: |
scripts/run-host-tests.sh
run: scripts/run-host-tests.sh
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ on:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: set up JDK 1.8
uses: actions/setup-java@v1
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 1.8
java-version: 11
distribution: 'zulu'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Write GPG Sec Ring
run: echo '${{ secrets.GPG_KEY_CONTENTS }}' | base64 -d > /tmp/secring.gpg
- name: Update gradle.properties
Expand Down

0 comments on commit cf86584

Please sign in to comment.