File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 - " !**.md"
1919
2020jobs :
21+ build-local :
22+ name : Build (Local)
23+ runs-on : ubuntu-latest
24+
25+ steps :
26+ - uses : actions/checkout@v4
27+
28+ - name : Setup Dotnet
29+ uses : actions/setup-dotnet@v4
30+ with :
31+ dotnet-version : ${{ env.DOTNET_VERSION }}
32+
33+ - name : Build Local Runner
34+ run : dotnet build LocalRunner -c Release
35+
36+ - name : Copy Local Runner
37+ run : |
38+ mkdir -p dist
39+ ls ./LocalRunner/bin/release/
40+ cp ./LocalRunner/bin/release/.net8.0/LocalRunner ./dist/LocalRunner
41+
42+ - name : Upload executable as artifact
43+ uses : actions/upload-artifact@v4
44+ with :
45+ name : exe-file
46+ path : dist/LocalRunner
47+
2148 build-wasm :
2249 name : Build (WASM)
2350 runs-on : ubuntu-latest
@@ -98,6 +125,11 @@ jobs:
98125 ./end2end/scripts/generate_tests.sh
99126 git diff --quiet
100127
128+ - uses : actions/download-artifact@v4
129+ with :
130+ name : exe-file
131+ path : dist
132+
101133 - uses : actions/download-artifact@v4
102134 with :
103135 name : wasm-file
@@ -116,15 +148,9 @@ jobs:
116148 run : ./scripts/wasm/update_sha.sh sqlc.ci.yaml
117149
118150 - name : Verify pushed sqlc requests are synced
119- run : |
120- dotnet build LocalRunner -c Release
121- mkdir -p dist && cp ./LocalRunner/bin/release/.net8.0/LocalRunner ./dist/LocalRunner
122- sqlc -f sqlc.local.yaml diff
123-
151+ run : sqlc -f sqlc.local.yaml diff
124152
125153 - name : Verify pushed generated code is synced
126154 run : |
127155 ./scripts/wasm/update_sha.sh sqlc.ci.yaml
128156 sqlc -f sqlc.ci.yaml diff
129-
130-
You can’t perform that action at this time.
0 commit comments