Merge pull request #234 from gameknife/dev #21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Linux CI (Self) | |
| on: | |
| pull_request: | |
| branches: [main, dev, 'releases/**'] | |
| push: | |
| branches: [main, 'releases/**'] | |
| paths: | |
| - '.github/workflows/**' | |
| - 'src/**' | |
| - 'assets/shaders/**' | |
| - 'tools/gnb/**' | |
| - 'gnb.*' | |
| - '**/CMakeLists.txt' | |
| jobs: | |
| build: | |
| runs-on: [self-hosted, linux] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| clean: false | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: tools/gnb/go.mod | |
| - name: Build latest gnb | |
| run: | | |
| cd tools/gnb | |
| go build -trimpath -ldflags="-s -w -X main.version=$(git -C "$GITHUB_WORKSPACE" rev-parse HEAD)" -o "$GITHUB_WORKSPACE/gnb" ./cmd/gnb | |
| - run: ./gnb.sh setup | |
| - run: ./gnb.sh build |