|
@@ -13,20 +13,24 @@ on:
|
|
|
branches: [ "dev" ]
|
|
branches: [ "dev" ]
|
|
|
env:
|
|
env:
|
|
|
PR_NUMBER: pr${{ github.event.number }}
|
|
PR_NUMBER: pr${{ github.event.number }}
|
|
|
|
|
+ CCACHE_DIR: '.ccache'
|
|
|
|
|
+
|
|
|
|
|
|
|
|
jobs:
|
|
jobs:
|
|
|
format:
|
|
format:
|
|
|
- name: 'verify format'
|
|
|
|
|
|
|
+ name: 'Verify Format'
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
|
|
|
+ container:
|
|
|
|
|
+ image: fijxu/build-environments:linux-clang-format
|
|
|
steps:
|
|
steps:
|
|
|
- uses: https://code.forgejo.org/actions/checkout@v3
|
|
- uses: https://code.forgejo.org/actions/checkout@v3
|
|
|
with:
|
|
with:
|
|
|
submodules: false
|
|
submodules: false
|
|
|
- - name: set up JDK 17
|
|
|
|
|
- uses: https://github.com/actions/setup-java@v3
|
|
|
|
|
- with:
|
|
|
|
|
- java-version: '17'
|
|
|
|
|
- distribution: 'temurin'
|
|
|
|
|
|
|
+ # - name: set up JDK 17
|
|
|
|
|
+ # uses: https://github.com/actions/setup-java@v3
|
|
|
|
|
+ # with:
|
|
|
|
|
+ # java-version: '17'
|
|
|
|
|
+ # distribution: 'temurin'
|
|
|
- name: 'Verify Formatting'
|
|
- name: 'Verify Formatting'
|
|
|
run: bash -ex ./.ci/scripts/format/script.sh
|
|
run: bash -ex ./.ci/scripts/format/script.sh
|
|
|
build-linux:
|
|
build-linux:
|
|
@@ -55,13 +59,13 @@ jobs:
|
|
|
uses: https://code.forgejo.org/actions/cache@v3
|
|
uses: https://code.forgejo.org/actions/cache@v3
|
|
|
id: ccache-restore
|
|
id: ccache-restore
|
|
|
with:
|
|
with:
|
|
|
- path: ~/.ccache
|
|
|
|
|
|
|
+ path: .ccache
|
|
|
key: ${{ runner.os }}-${{ matrix.type }}-${{ github.sha }}
|
|
key: ${{ runner.os }}-${{ matrix.type }}-${{ github.sha }}
|
|
|
restore-keys: |
|
|
restore-keys: |
|
|
|
${{ runner.os }}-${{ matrix.type }}-
|
|
${{ runner.os }}-${{ matrix.type }}-
|
|
|
- name: Create ccache directory
|
|
- name: Create ccache directory
|
|
|
if: steps.ccache-restore.outputs.cache-hit != 'true'
|
|
if: steps.ccache-restore.outputs.cache-hit != 'true'
|
|
|
- run: mkdir -p ~/.ccache
|
|
|
|
|
|
|
+ run: mkdir -p .ccache
|
|
|
- name: Build
|
|
- name: Build
|
|
|
run: ./.ci/scripts/${{ matrix.type }}/docker.sh
|
|
run: ./.ci/scripts/${{ matrix.type }}/docker.sh
|
|
|
env:
|
|
env:
|
|
@@ -171,7 +175,7 @@ jobs:
|
|
|
path: |
|
|
path: |
|
|
|
~/.gradle/caches
|
|
~/.gradle/caches
|
|
|
~/.gradle/wrapper
|
|
~/.gradle/wrapper
|
|
|
- ~/.ccache
|
|
|
|
|
|
|
+ .ccache
|
|
|
key: ${{ runner.os }}-android-${{ github.sha }}
|
|
key: ${{ runner.os }}-android-${{ github.sha }}
|
|
|
restore-keys: |
|
|
restore-keys: |
|
|
|
${{ runner.os }}-android-
|
|
${{ runner.os }}-android-
|