@@ -3,9 +3,6 @@ name: Build Packages
33on :
44  pull_request :
55    types : [opened, synchronize, reopened, ready_for_review] 
6-   pull_request_target :
7-     types : [opened] 
8-   workflow_dispatch :
96  push :
107    branches : ["main"] 
118
1512
1613jobs :
1714  test :
18-     if : github.event_name == 'pull_request' || github.event_name == 'pull_request_target' || github.event_name == 'workflow_dispatch'  
15+     if : github.event_name == 'pull_request' 
1916    runs-on : ${{ matrix.runner }} 
2017    environment : test 
2118    strategy :
2421          - runner : [self-hosted, macOS, ARM64] 
2522            enabled : true 
2623          - runner : [self-hosted, Linux, X64] 
27-             enabled : false 
24+             enabled : true 
2825
2926    steps :
3027      - name : Check out packages repository 
@@ -38,20 +35,15 @@ jobs:
3835          EOF 
3936          cat > "$TANGRAM_CI_DIR/bin/tangram" << 'EOF' 
4037          #!/bin/sh 
41-           exec tangram --directory "$TANGRAM_CI_DIR" --config "$TANGRAM_CI_DIR/config.json" "$@" 
38+           exec tangram -m server - -directory "$TANGRAM_CI_DIR" --config "$TANGRAM_CI_DIR/config.json" "$@" 
4239          EOF 
4340          chmod +x "$TANGRAM_CI_DIR/bin/tangram" 
4441
4542name : Test packages 
4643        if : matrix.enabled 
4744        shell : bash 
4845        run : | 
49-           "$TG_EXE" server start 
50-           while [ "$("$TG_EXE" server status)" != "started" ]; do 
51-             sleep 1 
52-           done 
5346          bun run auto --test --sequential 
54-           "$TG_EXE" server stop 
5547
5648release :
5749    if : github.event_name == 'push' && github.ref == 'refs/heads/main' 
6355          - runner : [self-hosted, macOS, ARM64] 
6456            enabled : true 
6557          - runner : [self-hosted, Linux, X64] 
66-             enabled : false 
58+             enabled : true 
6759
6860    steps :
6961      - name : Check out packages repository 
@@ -77,17 +69,12 @@ jobs:
7769          EOF 
7870          cat > "$TANGRAM_CI_DIR/bin/tangram" << 'EOF' 
7971          #!/bin/sh 
80-           exec tangram --directory "$TANGRAM_CI_DIR" --config "$TANGRAM_CI_DIR/config.json" "$@" 
72+           exec tangram -m server - -directory "$TANGRAM_CI_DIR" --config "$TANGRAM_CI_DIR/config.json" "$@" 
8173          EOF 
8274          chmod +x "$TANGRAM_CI_DIR/bin/tangram" 
8375
8476name : Release packages 
8577        if : matrix.enabled 
8678        shell : bash 
8779        run : | 
88-           "$TG_EXE" server start 
89-           while [ "$("$TG_EXE" server status)" != "started" ]; do 
90-             sleep 1 
91-           done 
9280          bun run auto --release --sequential 
93-           "$TG_EXE" server stop 
0 commit comments