Skip to content

Commit ead09df

Browse files
authored
chore(dart): CI fixes (#229)
* chore(dart): build release against latest published eppo_core * chore(dart): update lockfile on eppo_core release * chore(dart): add changeset file
1 parent b6ede43 commit ead09df

File tree

4 files changed

+149
-229
lines changed

4 files changed

+149
-229
lines changed

.changeset/five-laws-do.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"dart-sdk": patch
3+
---
4+
5+
Web artifacts for Dart SDK are not built in release mode, which reduces the size of wasm file from 12M down to 2M.

.github/workflows/dart.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343
- run: npm ci
4444

4545
- name: Override eppo_core for testing
46+
# Released version should be built against published eppo_core
47+
if: "!startsWith(github.ref, 'refs/tags/dart-sdk-')"
4648
run: |
4749
mkdir -p "${CARGO_HOME:-$HOME/.cargo}"
4850
echo "[patch.crates-io.eppo_core]" >> "${CARGO_HOME:-$HOME/.cargo}/config.toml"

.github/workflows/publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ jobs:
5555
env:
5656
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
5757

58-
update_ruby_lockfile:
59-
name: Update Ruby SDK lockfile
58+
update_lockfiles:
59+
name: Update SDK lockfiles
6060
runs-on: ubuntu-latest
6161
if: ${{ startsWith(github.ref_name, 'eppo_core@') }}
6262
needs: publish
@@ -65,11 +65,13 @@ jobs:
6565
- run: rustup update stable && rustup default stable
6666
- run: cargo update eppo_core
6767
working-directory: ruby-sdk
68+
- run: cargo update eppo_core
69+
working-directory: dart-sdk/rust
6870
- name: Open pull request
6971
uses: peter-evans/create-pull-request@v7
7072
with:
71-
commit-message: 'chore(ruby): update lockfile'
72-
title: 'chore(ruby): update lockfile'
73+
commit-message: 'chore: update lockfiles'
74+
title: 'chore: update lockfiles'
7375
branch: create-pull-request/ruby-lockfile
7476
base: main
7577

0 commit comments

Comments
 (0)