Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build anki web assets from rslib-bridge/anki submodule #217

Merged
merged 14 commits into from
Jul 19, 2022
Merged
17 changes: 3 additions & 14 deletions .github/workflows/linux_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,26 +70,15 @@ jobs:
${{ runner.os }}-rust-v1-assembleRelease
${{ runner.os }}-rust-v1

- name: Bazel cache
id: bazel-cache
- name: Node and Bazel cache
uses: actions/cache@v2
with:
path: |
~/.cache/bazel
key: ${{ runner.os }}-v1-bazel-cache-${{ hashFiles('rslib-bridge/anki/defs.bzl') }}
restore-keys: |
${{ runner.os }}-v1-bazel-cache

- name: Node module cache
id: node-module-cache
uses: actions/cache@v2
with:
path: |
rslib-bridge/anki/node_modules
key: ${{ runner.os }}-v1-node-module-cache-${{ hashFiles('rslib-bridge/anki/package.json') }}
key: ${{ runner.os }}-v1-node-bazel-cache-${{ hashFiles('rslib-bridge/anki/package.json') }}-${{ hashFiles('rslib-bridge/anki/defs.bzl') }}
mikehardy marked this conversation as resolved.
Show resolved Hide resolved
restore-keys: |
${{ runner.os }}-v1-node-module-cache-
${{ runner.os }}-v1-node-module-cache
${{ runner.os }}-v1-node-bazel-cache

- name: Build
run: ./gradlew clean assembleRelease -DtestBuildType=release -Dorg.gradle.daemon=false -Dorg.gradle.console=plain # assembleAndroidTest
Expand Down
17 changes: 3 additions & 14 deletions .github/workflows/macos_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,26 +69,15 @@ jobs:
${{ runner.os }}-rust-v1-assembleDebug
${{ runner.os }}-rust-v1

- name: Bazel cache
id: bazel-cache
- name: Node and Bazel cache
uses: actions/cache@v2
with:
path: |
/private/var/tmp/_bazel_runner
key: ${{ runner.os }}-v1-bazel-cache-${{ hashFiles('rslib-bridge/anki/defs.bzl') }}
restore-keys: |
${{ runner.os }}-v1-bazel-cache

- name: Node module cache
id: node-module-cache
uses: actions/cache@v2
with:
path: |
rslib-bridge/anki/node_modules
key: ${{ runner.os }}-v1-node-module-cache-${{ hashFiles('rslib-bridge/anki/package.json') }}
key: ${{ runner.os }}-v1-node-bazel-cache-${{ hashFiles('rslib-bridge/anki/package.json') }}-${{ hashFiles('rslib-bridge/anki/defs.bzl') }}
restore-keys: |
${{ runner.os }}-v1-node-module-cache-
${{ runner.os }}-v1-node-module-cache
${{ runner.os }}-v1-node-bazel-cache

- name: Build
run: ./gradlew clean assembleDebug -DtestBuildType=debug -Dorg.gradle.daemon=false -Dorg.gradle.console=plain
Expand Down
17 changes: 3 additions & 14 deletions .github/workflows/publish_library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,26 +50,15 @@ jobs:
run: |
pip3 install --upgrade protobuf stringcase

- name: Bazel cache
id: bazel-cache
- name: Node and Bazel cache
uses: actions/cache@v2
with:
path: |
~/.cache/bazel
key: ${{ runner.os }}-v1-bazel-cache-${{ hashFiles('rslib-bridge/anki/defs.bzl') }}
restore-keys: |
${{ runner.os }}-v1-bazel-cache

- name: Node module cache
id: node-module-cache
uses: actions/cache@v2
with:
path: |
rslib-bridge/anki/node_modules
key: ${{ runner.os }}-v1-node-module-cache-${{ hashFiles('rslib-bridge/anki/package.json') }}
key: ${{ runner.os }}-v1-node-bazel-cache-${{ hashFiles('rslib-bridge/anki/package.json') }}-${{ hashFiles('rslib-bridge/anki/defs.bzl') }}
restore-keys: |
${{ runner.os }}-v1-node-module-cache-
${{ runner.os }}-v1-node-module-cache
${{ runner.os }}-v1-node-bazel-cache

- name: Build
run: ./gradlew clean assembleRelease -DtestBuildType=release -Dorg.gradle.daemon=false -Dorg.gradle.console=plain
Expand Down
17 changes: 3 additions & 14 deletions .github/workflows/publish_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,15 @@ jobs:
brew install x86_64-unknown-linux-gnu
x86_64-unknown-linux-gnu-gcc -v

- name: Bazel cache
id: bazel-cache
- name: Node and Bazel cache
uses: actions/cache@v2
with:
path: |
/private/var/tmp/_bazel_runner
key: ${{ runner.os }}-v1-bazel-cache-${{ hashFiles('rslib-bridge/anki/defs.bzl') }}
restore-keys: |
${{ runner.os }}-v1-bazel-cache

- name: Node module cache
id: node-module-cache
uses: actions/cache@v2
with:
path: |
rslib-bridge/anki/node_modules
key: ${{ runner.os }}-v1-node-module-cache-${{ hashFiles('rslib-bridge/anki/package.json') }}
key: ${{ runner.os }}-v1-node-bazel-cache-${{ hashFiles('rslib-bridge/anki/package.json') }}-${{ hashFiles('rslib-bridge/anki/defs.bzl') }}
restore-keys: |
${{ runner.os }}-v1-node-module-cache-
${{ runner.os }}-v1-node-module-cache
${{ runner.os }}-v1-node-bazel-cache

- name: Build JAR
run: |
Expand Down
17 changes: 3 additions & 14 deletions .github/workflows/robolectric_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,26 +85,15 @@ jobs:
${{ runner.os }}-rust-v1-rsdroid-testing:build
${{ runner.os }}-rust-v1

- name: Bazel cache
id: bazel-cache
- name: Node and Bazel cache
uses: actions/cache@v2
with:
path: |
/private/var/tmp/_bazel_runner
key: ${{ runner.os }}-v1-bazel-cache-${{ hashFiles('rslib-bridge/anki/defs.bzl') }}
restore-keys: |
${{ runner.os }}-v1-bazel-cache

- name: Node module cache
id: node-module-cache
uses: actions/cache@v2
with:
path: |
rslib-bridge/anki/node_modules
key: ${{ runner.os }}-v1-node-module-cache-${{ hashFiles('rslib-bridge/anki/package.json') }}
key: ${{ runner.os }}-v1-node-bazel-cache-${{ hashFiles('rslib-bridge/anki/package.json') }}-${{ hashFiles('rslib-bridge/anki/defs.bzl') }}
restore-keys: |
${{ runner.os }}-v1-node-module-cache-
${{ runner.os }}-v1-node-module-cache
${{ runner.os }}-v1-node-bazel-cache

- name: Build JAR
run: |
Expand Down
19 changes: 4 additions & 15 deletions .github/workflows/windows_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,26 +92,15 @@ jobs:
${{ runner.os }}-rust-v1-assembleRelease
${{ runner.os }}-rust-v1

- name: Bazel cache
id: bazel-cache
uses: actions/cache@v2
with:
path: |
C:\Users\runneradmin\_bazel_runneradmin
key: ${{ runner.os }}-v1-bazel-cache-${{ hashFiles('rslib-bridge/anki/defs.bzl') }}
restore-keys: |
${{ runner.os }}-v1-bazel-cache

- name: Node module cache
id: node-module-cache
- name: Node and Bazel cache
uses: actions/cache@v2
with:
path: |
C:/Users/runneradmin/_bazel_runneradmin
rslib-bridge/anki/node_modules
key: ${{ runner.os }}-v1-node-module-cache-${{ hashFiles('rslib-bridge/anki/package.json') }}
key: ${{ runner.os }}-v1-node-bazel-cache-${{ hashFiles('rslib-bridge/anki/package.json') }}-${{ hashFiles('rslib-bridge/anki/defs.bzl') }}
restore-keys: |
${{ runner.os }}-v1-node-module-cache-
${{ runner.os }}-v1-node-module-cache
${{ runner.os }}-v1-node-bazel-cache

# -Dorg.gradle.daemon=false has been removed
# -Dorg.gradle.console=plain has been removed
Expand Down
19 changes: 4 additions & 15 deletions .github/workflows/windows_pure_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,26 +66,15 @@ jobs:
${{ runner.os }}-rust-v1-assembleRelease
${{ runner.os }}-rust-v1

- name: Bazel cache
id: bazel-cache
uses: actions/cache@v2
with:
path: |
C:\Users\runneradmin\_bazel_runneradmin
key: ${{ runner.os }}-v1-bazel-cache-${{ hashFiles('rslib-bridge/anki/defs.bzl') }}
restore-keys: |
${{ runner.os }}-v1-bazel-cache

- name: Node module cache
id: node-module-cache
- name: Node and Bazel cache
uses: actions/cache@v2
with:
path: |
C:/Users/runneradmin/_bazel_runneradmin
rslib-bridge/anki/node_modules
key: ${{ runner.os }}-v1-node-module-cache-${{ hashFiles('rslib-bridge/anki/package.json') }}
key: ${{ runner.os }}-v1-node-bazel-cache-${{ hashFiles('rslib-bridge/anki/package.json') }}-${{ hashFiles('rslib-bridge/anki/defs.bzl') }}
restore-keys: |
${{ runner.os }}-v1-node-module-cache-
${{ runner.os }}-v1-node-module-cache
${{ runner.os }}-v1-node-bazel-cache

- name: Build
run: |
Expand Down