Skip to content

Commit

Permalink
CI: Try new packaging format
Browse files Browse the repository at this point in the history
  • Loading branch information
n0toose committed Jun 10, 2024
1 parent 4a4868a commit 28b5dad
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,24 @@ jobs:
matrix:
include:
- os: ubuntu-latest
flags: --target x86_64-unknown-linux-gnu
asset_name: "uhyve-${{ github.ref_name }}-linux-amd64"
path: "target/release/uhyve"
filename_suffix: "${{ github.ref_name }}-linux-amd64"
uhyve_path: "target/release/uhyve"
uhyve-interface_path: "target/release/uhyve-interface"
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo build --release --locked ${{ matrix.flags }}
- run: gh release create ${{ github.ref }} --draft --title "Uhyve ${{ github.ref_name }}"
- run: ls
- run: ls target/release
- run: gh release upload ${{ github.ref }} ${{ matrix.path }}#${{ matrix.asset_name }} --clobber
# Adapted from: https://github.com/mkroening/edu-sync/blob/main/.github/workflows/release.yml
- name: Create archive
run: |
DIST=uhyve-${{ matrix.filename_suffix }}
mkdir $DIST
mv target/release/uhyve $DIST
cp README.md $DIST
cp LICENSE-* $DIST
tar czf $DIST.tar.gz $DIST
echo "FILE=$DIST.zip" >> $GITHUB_ENV
- run: gh release upload ${{ github.ref }} $FILE --clobber

0 comments on commit 28b5dad

Please sign in to comment.