A simple command-line tool to start NetBSD virtual machines using QEMU with sensible defaults.

Add GitHub Actions workflow for release automation; include build, asset archiving, and upload steps

+48
+43
.github/workflows/release.yml
··· 1 + name: release 2 + on: 3 + release: 4 + types: [created] 5 + 6 + jobs: 7 + build: 8 + name: release 9 + runs-on: ubuntu-latest 10 + strategy: 11 + matrix: 12 + target: 13 + - x86_64-unknown-linux-gnu 14 + - aarch64-unknown-linux-gnu 15 + - x86_64-apple-darwin 16 + - aarch64-apple-darwin 17 + steps: 18 + - uses: actions/checkout@v3 19 + - name: Setup Fluent CI 20 + uses: fluentci-io/setup-fluentci@v5 21 + env: 22 + GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} 23 + - uses: denoland/setup-deno@v2 24 + - name: Compile 25 + run: | 26 + rm deno.lock || true 27 + deno compile -A --no-check --output netbsd-up --target ${{ matrix.target }} main.ts 28 + - name: Set env 29 + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV 30 + - name: Archive assets 31 + run: | 32 + tar czvf netbsd-up_${{ env.RELEASE_VERSION }}_${{ matrix.target }}.tar.gz netbsd-up 33 + shasum -a 256 netbsd-up_${{ env.RELEASE_VERSION }}_${{ matrix.target }}.tar.gz > netbsd-up_${{ env.RELEASE_VERSION }}_${{ matrix.target }}.tar.gz.sha256 34 + - name: Upload release assets 35 + run: | 36 + for ext in tar.gz tar.gz.sha256; do 37 + export FILE=netbsd-up_${{ env.RELEASE_VERSION }}_${{ matrix.target }}.$ext 38 + fluentci run --wasm github release_upload $TAG $FILE 39 + done 40 + env: 41 + TAG: ${{ env.RELEASE_VERSION }} 42 + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} 43 + GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+5
README.md
··· 1 1 # NetBSD-UP 🚀 2 2 3 + [![release](https://github.com/tsirysndr/netbsd-up/actions/workflows/release.yml/badge.svg)](https://github.com/tsirysndr/netbsd-up/actions/workflows/release.yml) 4 + [![JSR](https://jsr.io/badges/@tsiry/netbsd-up)](https://jsr.io/@tsiry/netbsd-up) 5 + [![deno module](https://shield.deno.dev/x/netbsdup)](https://deno.land/x/netbsdup) 6 + ![deno compatibility](https://shield.deno.dev/deno/^2.5.6) 7 + 3 8 A simple command-line tool to start NetBSD virtual machines using QEMU with 4 9 sensible defaults. 5 10