File tree Expand file tree Collapse file tree 1 file changed +24
-3
lines changed Expand file tree Collapse file tree 1 file changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ name: Release
2
2
3
3
on :
4
4
push :
5
- branches : [ "main" ]
5
+ tags :
6
+ - " v*.*.*"
6
7
pull_request :
7
8
branches : [ "main" ]
8
9
41
42
with :
42
43
key : ${{ matrix.target }}
43
44
44
- - name : Install Linux dependencies
45
+ - name : Install gcc-aarch64-linux-gnu
45
46
if : matrix.os == 'ubuntu-latest' && matrix.target == 'aarch64-unknown-linux-gnu'
46
47
run : |
47
48
sudo apt-get update
50
51
- name : Build
51
52
run : cargo build -p native --release --target ${{ matrix.target }}
52
53
54
+ - name : Upload Artifact
55
+ uses : actions/upload-artifact@v4
56
+ with :
57
+ name : cjs-module-lexer-${{ matrix.target }}
58
+ path : target/release/native
59
+ if-no-files-found : error
60
+
61
+ release :
62
+ needs : build
63
+ runs-on : ubuntu-latest
64
+
65
+ steps :
66
+ - name : Checkout
67
+ uses : actions/checkout@v4
68
+
69
+ - name : Download artifact
70
+ uses : actions/download-artifact@v4
71
+ with :
72
+ path : .artifact
73
+
53
74
- name : List
54
- run : ls target
75
+ run : ls .artifact
You can’t perform that action at this time.
0 commit comments