forked from asterinas/vostd
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (46 loc) · 1.55 KB
/
Copy pathverus-update-test.yml
File metadata and controls
52 lines (46 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Run Verus Update Test
on:
repository_dispatch:
types: [verus-update-test]
jobs:
run-tests:
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.client_payload.branch }}
submodules: recursive
- name: Install dependencies
run: |
sudo apt update -qq
sudo apt install -y build-essential unzip pkg-config libssl-dev llvm
- name: Run tests on main branch
run: |
echo "=== Running tests on main branch ==="
git fetch origin main
git checkout main
git submodule update --init --recursive
git config --global user.name "Verus CI Bot"
git config --global user.email "ci@asterinas.verus"
cargo dv bootstrap
# Discard any uncommitted changes in tools/verus before upgrade
git -C tools/verus reset --hard HEAD
cargo dv bootstrap --upgrade --test_branch
set -o pipefail
if ! make 2>&1; then
echo "❌ Verification failed"
exit 1
else
echo "✅ Main branch verification passed!"
fi
- name: Dispatch back to fork for promotion
if: success()
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.VERUS_TEST_TOKEN }}
repository: asterinas/verus
event-type: verus-update-test-success
client-payload: '{"branch":"update-test"}'