From 4b5a2fe9b5aac63e5688026252e1c84a342f770c Mon Sep 17 00:00:00 2001 From: Hans Gaiser Date: Fri, 6 Sep 2024 17:10:55 +0200 Subject: [PATCH] Update release.yaml. --- .github/workflows/release.yaml | 87 +++++++++++++++++----------------- 1 file changed, 44 insertions(+), 43 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9337e93..e4fc800 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,43 +1,44 @@ -name: Release - -on: - release: - types: [published] - -env: - CARGO_TERM_COLOR: always - -permissions: - contents: write - -jobs: - build: - name: Build binary - runs-on: ubuntu-latest - - container: - image: archlinux:base-devel - - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Install dependencies - run: | - sudo pacman -Syyuu --noconfirm --needed clang cmake rust avahi cuda ffmpeg gcc-libs glibc libpulse nvidia-utils openssl opus - - - name: Build - run: cargo build --release - - - name: Compress - run: | - mkdir "$RUNNER_TEMP/$GITHUB_REF_NAME" - cp -r ./target/release/moonshine README.md "$RUNNER_TEMP/$GITHUB_REF_NAME" - cp LICENSE "$RUNNER_TEMP/$GITHUB_REF_NAME/LICENSE" - tar caf "./moonshine-$GITHUB_REF_NAME-linux-amd64.tar.xz" -C "$RUNNER_TEMP" "$GITHUB_REF_NAME" - - - name: Release - uses: softprops/action-gh-release@v2 - if: startsWith(github.ref, 'refs/tags/') - with: - files: "./moonshine-*.tar.xz" +# Disabled for now, until the dependency on ffmpeg is removed this isn't that useful. +# name: Release + +# on: +# release: +# types: [published] + +# env: +# CARGO_TERM_COLOR: always + +# permissions: +# contents: write + +# jobs: +# build: +# name: Build binary +# runs-on: ubuntu-latest + +# container: +# image: archlinux:base-devel + +# steps: +# - name: Checkout code +# uses: actions/checkout@v3 + +# - name: Install dependencies +# run: | +# sudo pacman -Syyuu --noconfirm --needed clang cmake rust avahi cuda ffmpeg gcc-libs glibc libpulse nvidia-utils openssl opus + +# - name: Build +# run: cargo build --release + +# - name: Compress +# run: | +# mkdir "$RUNNER_TEMP/$GITHUB_REF_NAME" +# cp -r ./target/release/moonshine README.md "$RUNNER_TEMP/$GITHUB_REF_NAME" +# cp LICENSE "$RUNNER_TEMP/$GITHUB_REF_NAME/LICENSE" +# tar caf "./moonshine-$GITHUB_REF_NAME-linux-amd64.tar.xz" -C "$RUNNER_TEMP" "$GITHUB_REF_NAME" + +# - name: Release +# uses: softprops/action-gh-release@v2 +# if: startsWith(github.ref, 'refs/tags/') +# with: +# files: "./moonshine-*.tar.xz"