Skip to content

Commit 6bbd14a

Browse files
committed
testing
1 parent 26ae188 commit 6bbd14a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/scripts/directory-comparison.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,13 @@ fn directories_match(dir1: &str, dir2: &str, ignore: Option<&str>, show_diff: bo
5858

5959
let files1: HashMap<_, _> = tree1.iter()
6060
.filter(|i| !should_ignore_path(&i.path.relative, ignore))
61+
.filter(|i| std::path::Path::new(dir1).join(&i.path.relative).is_file())
6162
.map(|i| (i.path.relative.to_string(), i.hash.to_hex_string()))
6263
.collect();
6364

6465
let files2: HashMap<_, _> = tree2.iter()
6566
.filter(|i| !should_ignore_path(&i.path.relative, ignore))
67+
.filter(|i| std::path::Path::new(dir2).join(&i.path.relative).is_file())
6668
.map(|i| (i.path.relative.to_string(), i.hash.to_hex_string()))
6769
.collect();
6870

.github/workflows/artifacts.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Sync Contract Artifacts
22

33
on:
4+
push:
5+
branches:
6+
- ahmad/readd_offchain_artifact_match_sync
47
workflow_call:
58
inputs:
69
protocol_ref:
@@ -44,7 +47,7 @@ jobs:
4447
- name: Checkout protocol
4548
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4649
with:
47-
ref: ${{ inputs.protocol_ref || 'main' }}
50+
ref: ${{ inputs.protocol_ref || 'ahmad/readd_offchain_artifact_match_sync' }}
4851

4952
- name: Checkout offchain
5053
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -64,13 +67,8 @@ jobs:
6467
id: build-protocol
6568
run: |
6669
echo "protocol_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
67-
forge soldeer update --config-location foundry
68-
forge build ./src --sizes
69-
70-
- name: Setup Rust
71-
uses: actions-rust-lang/setup-rust-toolchain@fb51252c7ba57d633bc668f941da052e410add48 # v1.13.0
72-
with:
73-
working-directory: ./offchain
70+
forge soldeer update
71+
forge build
7472
7573
- name: Install rust-script
7674
run: |
@@ -102,7 +100,7 @@ jobs:
102100
commit-message: "sync: otim-protocol artifacts (${{ steps.build-protocol.outputs.protocol_sha }})"
103101
title: "Sync: otim-protocol build artifacts"
104102
body: |
105-
Syncing build artifacts from otim-protocol.
103+
Syncing build artifacts from otim-protocol ([artifact comparison](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}))
106104
107105
- Protocol: `${{ steps.build-protocol.outputs.protocol_sha }}`
108106
- Offchain: `${{ inputs.offchain_ref || 'main' }}`

0 commit comments

Comments
 (0)