File tree Expand file tree Collapse file tree 2 files changed +40
-2
lines changed Expand file tree Collapse file tree 2 files changed +40
-2
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ jobs:
104104 save-if : ${{ github.ref == 'refs/heads/main' }}
105105 - name : Clippy
106106 run : cargo clippy --all-targets ${{ matrix.flags }} -- -D warnings
107-
107+
108108 clippy-test-kernel :
109109 name : Clippy test-kernels
110110 runs-on : ubuntu-latest
@@ -124,7 +124,7 @@ jobs:
124124 # TODO: Remove once we have a hermit toolchain upgrade
125125 # capable of sparse registries
126126 CARGO_REGISTRIES_CRATES_IO_PROTOCOL : git
127-
127+
128128 coverage :
129129 name : Coverage
130130 runs-on : [self-hosted]
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*.*.*"
7+
8+ env :
9+ GH_TOKEN : ${{ github.token }}
10+
11+ jobs :
12+ release :
13+ name : Create new release
14+ runs-on : ${{ matrix.os }}
15+ strategy :
16+ matrix :
17+ include :
18+ - os : ubuntu-latest
19+ filename_suffix : " ${{ github.ref_name }}-linux-amd64"
20+ steps :
21+ - uses : actions/checkout@v4
22+ # Adapted from: https://github.com/mkroening/edu-sync/blob/main/.github/workflows/release.yml
23+ - run : gh release create ${{ github.ref }} --draft --title "Uhyve ${{ github.ref_name }}"
24+ if : startsWith(matrix.os, 'ubuntu')
25+ - uses : dtolnay/rust-toolchain@stable
26+ - run : cargo build --release --locked
27+ - name : Create archive
28+ run : |
29+ DIST=uhyve-${{ matrix.filename_suffix }}
30+ mkdir $DIST
31+
32+ mv target/release/uhyve $DIST
33+ cp README.md $DIST
34+ cp LICENSE-* $DIST
35+
36+ tar czf $DIST.tar.gz $DIST
37+ echo "FILE=$DIST.tar.gz" >> $GITHUB_ENV
38+ - run : gh release upload ${{ github.ref }} $FILE
You can’t perform that action at this time.
0 commit comments