diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 4ac5dd81..4efa1cfa 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -7,7 +7,7 @@ on: push: branches: [ "master" ] pull_request: - branches: [ "master", "pre-master" ] + branches: [ "master" ] jobs: diff --git a/.github/workflows/nightly-test.yml b/.github/workflows/nightly-test.yml new file mode 100644 index 00000000..e6b1d383 --- /dev/null +++ b/.github/workflows/nightly-test.yml @@ -0,0 +1,61 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +# Nightly Test Against Open Source Projects Using Xgo +name: Nightly Test + +on: + schedule: + - cron: "23 0 * * *" + pull_request: + branches: [ "master" ] + + # 'gin-gonic/gin' ok + # 'fatedier/frp' cannot pass even with go? need to verify +jobs: + + test-with-xgo: + runs-on: ubuntu-latest + timeout-minutes: 360 + steps: + - uses: actions/checkout@v4 + with: + path: xgo + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.22' + + - name: Install Xgo Locally + run: | + cd xgo + go install ./cmd/xgo + xgo revision + + - uses: actions/checkout@v4 + with: + repository: pocketbase/pocketbase + path: pocketbase/pocketbase + + - name: Test pocketbase/pocketbase + continue-on-error: true + run: cd pocketbase/pocketbase && xgo test -v ./... + + - uses: actions/checkout@v4 + with: + repository: kubernetes/kubernetes + path: kubernetes/kubernetes + + - name: Test kubernetes/kubernetes + continue-on-error: true + run: cd kubernetes/kubernetes && xgo test -v ./... + + - uses: actions/checkout@v4 + with: + repository: gohugoio/hugo + path: gohugoio/hugo + + - name: Test gohugoio/hugo + continue-on-error: true + run: cd gohugoio/hugo && xgo test -v ./... \ No newline at end of file diff --git a/cmd/xgo/runtime_gen/core/version.go b/cmd/xgo/runtime_gen/core/version.go index b4f25ce1..06b7a382 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 = "ced286540d12f84a48095050174f2a37b376bdcc+1" -const NUMBER = 231 +const REVISION = "f948d832e81c7e70b5cc0fc282f582d7a1069e9f+1" +const NUMBER = 232 // these fields will be filled by compiler const XGO_VERSION = "" diff --git a/cmd/xgo/version.go b/cmd/xgo/version.go index 5fecbdf4..3deebaff 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 = "ced286540d12f84a48095050174f2a37b376bdcc+1" -const NUMBER = 231 +const REVISION = "f948d832e81c7e70b5cc0fc282f582d7a1069e9f+1" +const NUMBER = 232 func getRevision() string { revSuffix := "" diff --git a/runtime/core/version.go b/runtime/core/version.go index b4f25ce1..06b7a382 100644 --- a/runtime/core/version.go +++ b/runtime/core/version.go @@ -7,8 +7,8 @@ import ( ) const VERSION = "1.0.37" -const REVISION = "ced286540d12f84a48095050174f2a37b376bdcc+1" -const NUMBER = 231 +const REVISION = "f948d832e81c7e70b5cc0fc282f582d7a1069e9f+1" +const NUMBER = 232 // these fields will be filled by compiler const XGO_VERSION = ""