Skip to content

Commit

Permalink
Fix the version sha and modify the ci/cd to run faster on a pr (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlb6740 authored Aug 2, 2024
1 parent d6e2b50 commit 908bdad
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
38 changes: 34 additions & 4 deletions .github/workflows/compile-and-run-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@
name: "Validate Build"

# Controls when the action will run.
on: push
on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
Validate_Build:
name: Validate Build
Quick_Validate_Build:
name: Quick Validate Build
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -26,6 +31,31 @@ jobs:
- name: Check Version
run: docker run wasmscore -v | grep "is valid"

- name: Check QuickRun
- name: QuickRun WasmScore
run: docker run wasmscore -t quickrun_wasmscore

Full_Validate_Build:
name: Full Validate Build
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' }}
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Print context
run: echo "$GITHUB_CONTEXT"

- name: Build container
run: ./build.sh

- name: Print Version
run: docker run wasmscore -v

- name: Check Version
run: docker run wasmscore -v | grep "is valid"

- name: QuickRun WasmScore
run: docker run wasmscore -t quickrun_all



2 changes: 1 addition & 1 deletion config.inc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Global variables used by scripts for docker building and launching
IMAGE_NAME="wasmscore"
IMAGE_VERSION="v0.2.0.ac6da83"
IMAGE_VERSION="v0.2.0.2497a1f"

0 comments on commit 908bdad

Please sign in to comment.