(CI) remove update_goldens step - image artifacts are uploaded for every run, when updating goldens, edit dart.yml to point to the correct run/artifact ID

This commit is contained in:
Nick Fisher
2025-06-26 10:13:36 +08:00
parent ccc0a53abc
commit e7227d5f91

View File

@@ -13,27 +13,20 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-build-env
- run: cd thermion_dart && dart pub get && xvfb-run dart --enable-experiment=native-assets test test/asset_tests.dart test/instancing_tests.dart
- name: Zip goldens
run: zip -r goldens.zip ./thermion_dart/test/output
- name: Upload golden images
uses: actions/upload-artifact@v4
with:
name: golden-images-${{ github.sha }}
path: goldens.zip
- name: Upload logs
if: failure() || steps.build.outcome == 'failure'
uses: actions/upload-artifact@v4
with:
name: build-logs
path: |
${{ github.workspace }}/thermion_dart/.dart_tool/thermion_dart/log/build.log
retention-days: 5
dart-tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-build-env
- run: cd thermion_dart && dart pub get && xvfb-run dart --enable-experiment=native-assets test test/asset_tests.dart test/instancing_tests.dart
- name: Zip output
run: zip -r output.zip ./thermion_dart/test/output
- name: Upload golden images
uses: actions/upload-artifact@v4
with:
name: golden-images-${{ github.sha }}
path: output.zip
- name: Download golden images from previous run
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -43,7 +36,7 @@ jobs:
--dir ./thermion_dart/test/golden-downloads
- name: Unzip golden images
run: |
cd thermion_dart/test/golden-downloads && unzip goldens.zip
cd thermion_dart/test/golden-downloads && unzip output.zip
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip