From 07f2a9c9af4f3113d7fa1112ac673fff05047fe7 Mon Sep 17 00:00:00 2001 From: xhd2015 Date: Fri, 24 May 2024 11:31:15 +0800 Subject: [PATCH] update nightly-test.yml --- .github/workflows/nightly-test.yml | 10 +++++++++- cmd/xgo/runtime_gen/core/version.go | 4 ++-- cmd/xgo/version.go | 4 ++-- runtime/core/version.go | 4 ++-- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/nightly-test.yml b/.github/workflows/nightly-test.yml index 6cdccbc4..b58da2c0 100644 --- a/.github/workflows/nightly-test.yml +++ b/.github/workflows/nightly-test.yml @@ -28,7 +28,15 @@ jobs: - uses: actions/checkout@v4 with: path: xgo - ref: fix-const-expr-type-recognition + + - name: Switch To Master If From Nightly-Test + run: | + cd xgo + cur_branch=$(git branch --show-current) + if [[ $cur_branch = trigger-nightly-test ]];then + git fetch --depth origin master + git checkout master + fi - name: Set up Go uses: actions/setup-go@v4 diff --git a/cmd/xgo/runtime_gen/core/version.go b/cmd/xgo/runtime_gen/core/version.go index a1eefbf7..c9275623 100755 --- a/cmd/xgo/runtime_gen/core/version.go +++ b/cmd/xgo/runtime_gen/core/version.go @@ -7,8 +7,8 @@ import ( ) const VERSION = "1.0.37" -const REVISION = "cf49f7ce9b237a85a242c245e9846294b3c8347b+1" -const NUMBER = 234 +const REVISION = "ae27ae104ac2f782ec47dff97216958f65e5723a+1" +const NUMBER = 235 // these fields will be filled by compiler const XGO_VERSION = "" diff --git a/cmd/xgo/version.go b/cmd/xgo/version.go index 621eccf0..13235cb3 100644 --- a/cmd/xgo/version.go +++ b/cmd/xgo/version.go @@ -3,8 +3,8 @@ package main import "fmt" const VERSION = "1.0.37" -const REVISION = "cf49f7ce9b237a85a242c245e9846294b3c8347b+1" -const NUMBER = 234 +const REVISION = "ae27ae104ac2f782ec47dff97216958f65e5723a+1" +const NUMBER = 235 func getRevision() string { revSuffix := "" diff --git a/runtime/core/version.go b/runtime/core/version.go index a1eefbf7..c9275623 100644 --- a/runtime/core/version.go +++ b/runtime/core/version.go @@ -7,8 +7,8 @@ import ( ) const VERSION = "1.0.37" -const REVISION = "cf49f7ce9b237a85a242c245e9846294b3c8347b+1" -const NUMBER = 234 +const REVISION = "ae27ae104ac2f782ec47dff97216958f65e5723a+1" +const NUMBER = 235 // these fields will be filled by compiler const XGO_VERSION = ""