Merge pull request #1614 from goplus/revert-1599-closure-ctxreg-v2 #2069
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: Targets | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| - "!dependabot/**" | |
| - "!xgopilot/**" | |
| pull_request: | |
| branches: ["**"] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| llgo: | |
| continue-on-error: true | |
| timeout-minutes: 30 | |
| strategy: | |
| matrix: | |
| os: | |
| - macos-latest | |
| - ubuntu-latest | |
| llvm: [19] | |
| runs-on: ${{matrix.os}} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install dependencies | |
| uses: ./.github/actions/setup-deps | |
| with: | |
| llvm-version: ${{matrix.llvm}} | |
| - name: Set up Go for build | |
| uses: ./.github/actions/setup-go | |
| with: | |
| go-version: "1.24.2" | |
| - name: Install | |
| run: | | |
| go install ./... | |
| echo "LLGO_ROOT=$GITHUB_WORKSPACE" >> $GITHUB_ENV | |
| - name: Build targets (empty) | |
| run: | | |
| cd _demo/embed/targetsbuild | |
| bash build.sh empty | |
| - name: Build targets (defer) | |
| run: | | |
| cd _demo/embed/targetsbuild | |
| bash build.sh defer |