-
Notifications
You must be signed in to change notification settings - Fork 2
62 lines (53 loc) · 1.3 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# TODO use Dev Container
name: Ci
on:
push:
branches:
- main
- feat/use-ci-devcontainer # TODO remove me!
jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/checkout@v4
- uses: devcontainers/ci@v0.3
with:
imageName: ghcr.io/yskszk63/wasinodot-devcontainer
cacheFrom: ghcr.io/yskszk63/wasinodot-devcontainer
push: always
runCmd: cargo wasi build --release
- run: |
ls target/wasm32-wasi/release/wasinodot.wasm
- name: Upload builds
uses: actions/upload-artifact@v4
with:
name: build
path: |
target/wasm32-wasi/release/wasinodot.wasm
release:
if: ${{ false }}
needs:
- build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: build
- name: Remove latest nightly release
uses: dev-drprasad/delete-tag-and-release@v0.1.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
delete_release: true
tag_name: nightly
- name: Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
prerelease: true
files: |
wasinodot.wasm
tag_name: nightly