File tree Expand file tree Collapse file tree 2 files changed +71
-0
lines changed Expand file tree Collapse file tree 2 files changed +71
-0
lines changed Original file line number Diff line number Diff line change 1+ # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2+ name : Test
3+ on :
4+ pull_request :
5+ branches : [main]
6+ jobs :
7+ test :
8+ name : Test
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v2
12+
13+ - name : " Install Go"
14+ uses : actions/setup-go@v3
15+ with :
16+ go-version : ' 1.17'
17+
18+ - name : " Install TinyGo"
19+ run : |
20+ wget https://github.com/tinygo-org/tinygo/releases/download/v0.25.0/tinygo_0.25.0_amd64.deb
21+ sudo dpkg -i tinygo_0.25.0_amd64.deb
22+
23+ - name : Make
24+ env :
25+ ENABLE_WASM_OPT : false
26+ run : make build
Original file line number Diff line number Diff line change 1+ # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2+ name : Release
3+
4+ on :
5+ push :
6+ tags :
7+ - " v*"
8+
9+ jobs :
10+ assets :
11+ name : Build and release assets
12+ runs-on : " ubuntu-latest"
13+ steps :
14+ - uses : actions/checkout@v2
15+
16+ - name : set the release version (tag)
17+ run : echo "RELEASE_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
18+
19+ - name : " Install Go"
20+ uses : actions/setup-go@v3
21+ with :
22+ go-version : ' 1.17'
23+
24+ - name : " Install TinyGo"
25+ run : |
26+ wget https://github.com/tinygo-org/tinygo/releases/download/v0.25.0/tinygo_0.25.0_amd64.deb
27+ sudo dpkg -i tinygo_0.25.0_amd64.deb
28+
29+ - name : Make
30+ env :
31+ ENABLE_WASM_OPT : false
32+ run : make build
33+
34+ - name : generate checksums
35+ run : |
36+ sha256sum redirect.wasm > checksums-${{ env.RELEASE_VERSION }}.txt
37+
38+ - name : Create release
39+ uses : softprops/action-gh-release@v1
40+ with :
41+ fail_on_unmatched_files : true
42+ generate_release_notes : true
43+ files : |
44+ redirect.wasm
45+ checksums-${{ env.RELEASE_VERSION }}.txt
You can’t perform that action at this time.
0 commit comments