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
22
33on :
44 push :
5- branches : [ "main" ]
5+ tags :
6+ - " v*.*.*"
67 pull_request :
78 branches : [ "main" ]
89
4142 with :
4243 key : ${{ matrix.target }}
4344
44- - name : Install Linux dependencies
45+ - name : Install gcc-aarch64-linux-gnu
4546 if : matrix.os == 'ubuntu-latest' && matrix.target == 'aarch64-unknown-linux-gnu'
4647 run : |
4748 sudo apt-get update
5051 - name : Build
5152 run : cargo build -p native --release --target ${{ matrix.target }}
5253
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+
5374 - name : List
54- run : ls target
75+ run : ls .artifact
You can’t perform that action at this time.
0 commit comments