Skip to content

Commit 908bdad

Browse files
authored
Fix the version sha and modify the ci/cd to run faster on a pr (#44)
1 parent d6e2b50 commit 908bdad

File tree

2 files changed

+35
-5
lines changed

2 files changed

+35
-5
lines changed

.github/workflows/compile-and-run-x64.yml

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@
44
name: "Validate Build"
55

66
# Controls when the action will run.
7-
on: push
7+
on:
8+
push:
9+
branches: [main]
10+
pull_request:
11+
branches: [main]
812

913
jobs:
10-
Validate_Build:
11-
name: Validate Build
14+
Quick_Validate_Build:
15+
name: Quick Validate Build
1216
runs-on: ubuntu-latest
17+
if: ${{ github.event_name == 'pull_request' }}
1318
steps:
1419
- name: Checkout code
1520
uses: actions/checkout@v3
@@ -26,6 +31,31 @@ jobs:
2631
- name: Check Version
2732
run: docker run wasmscore -v | grep "is valid"
2833

29-
- name: Check QuickRun
34+
- name: QuickRun WasmScore
35+
run: docker run wasmscore -t quickrun_wasmscore
36+
37+
Full_Validate_Build:
38+
name: Full Validate Build
39+
runs-on: ubuntu-latest
40+
if: ${{ github.event_name == 'push' }}
41+
steps:
42+
- name: Checkout code
43+
uses: actions/checkout@v3
44+
45+
- name: Print context
46+
run: echo "$GITHUB_CONTEXT"
47+
48+
- name: Build container
49+
run: ./build.sh
50+
51+
- name: Print Version
52+
run: docker run wasmscore -v
53+
54+
- name: Check Version
55+
run: docker run wasmscore -v | grep "is valid"
56+
57+
- name: QuickRun WasmScore
3058
run: docker run wasmscore -t quickrun_all
3159

60+
61+

config.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Global variables used by scripts for docker building and launching
22
IMAGE_NAME="wasmscore"
3-
IMAGE_VERSION="v0.2.0.ac6da83"
3+
IMAGE_VERSION="v0.2.0.2497a1f"

0 commit comments

Comments
 (0)