mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Cache asset compilation results
This commit is contained in:
parent
2ed13071ef
commit
3135df927d
1 changed files with 16 additions and 3 deletions
19
.github/workflows/test-ruby.yml
vendored
19
.github/workflows/test-ruby.yml
vendored
|
@ -42,11 +42,24 @@ jobs:
|
||||||
with:
|
with:
|
||||||
onlyProduction: 'true'
|
onlyProduction: 'true'
|
||||||
|
|
||||||
|
- name: Cache assets from compilation
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
public/assets
|
||||||
|
public/packs
|
||||||
|
public/packs-test
|
||||||
|
tmp/cache/webpacker
|
||||||
|
key: ${{ matrix.mode }}-assets-${{ github.head_ref || github.ref_name }}-${{ github.sha }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ matrix.mode }}-assets-${{ github.head_ref || github.ref_name }}-${{ github.sha }}
|
||||||
|
${{ matrix.mode }}-assets-${{ github.head_ref || github.ref_name }}
|
||||||
|
${{ matrix.mode }}-assets-main
|
||||||
|
${{ matrix.mode }}-assets
|
||||||
|
|
||||||
- name: Precompile assets
|
- name: Precompile assets
|
||||||
# Previously had set this, but it's not supported
|
|
||||||
# export NODE_OPTIONS=--openssl-legacy-provider
|
|
||||||
run: |-
|
run: |-
|
||||||
./bin/rails assets:precompile
|
bin/rails assets:precompile
|
||||||
|
|
||||||
- name: Archive asset artifacts
|
- name: Archive asset artifacts
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in a new issue