From eb8c06693f81ea9dd61a087e22dd6aae2dc7952c Mon Sep 17 00:00:00 2001 From: Raphael Amorim Date: Tue, 2 Jul 2024 22:44:07 +0200 Subject: [PATCH] update workflows --- .github/workflows/nightly.yml | 25 +++++++++---------------- .github/workflows/release.yml | 2 +- 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 7b0ccaac8d..15b53efda6 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -3,8 +3,8 @@ name: Nightly on: workflow_dispatch: schedule: - # 01:00 every day - - cron: '0 1 * * *' + # 00:00 every day + - cron: '0 0 * * *' env: CARGO_TERM_COLOR: always @@ -68,7 +68,7 @@ jobs: run: make release-macos - name: Release nightly - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: name: Nightly tag_name: ${{ env.NIGHTLY_TAG }} @@ -104,7 +104,7 @@ jobs: - run: make release-debian-wayland - name: Release nightly - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: name: Nightly tag_name: ${{ env.NIGHTLY_TAG }} @@ -129,32 +129,25 @@ jobs: steps: - uses: actions/checkout@v4 - - name: rust cache uses: Swatinem/rust-cache@v2 with: - cache-on-failure: "true" - cache-all-crates: "true" - + cache-on-failure: true + cache-all-crates: true - name: rustup toolchain install stable --profile minimal run: rustup toolchain install stable --profile minimal - - name: Install WiX - run: dotnet tool install --global wix --version 4.0.4 + run: dotnet tool install --global wix --version 4.0.5 - run: wix --version - - run: wix extension add WixToolset.UI.wixext/4.0.4 WixToolset.Util.wixext/4.0.4 - + - run: wix extension add WixToolset.UI.wixext/4.0.5 WixToolset.Util.wixext/4.0.5 - run: cargo build --release - - name: Crate msi installer run: | wix build -arch "x64" -ext WixToolset.UI.wixext -ext WixToolset.Util.wixext \ -out "./Rio-installer.msi" "misc/windows/rio.wxs" - - run: cp ./target/release/rio.exe ./Rio-portable.exe - - name: Release Nightly - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: name: Nightly tag_name: ${{ env.NIGHTLY_TAG }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 77f489feff..542c817172 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: - run: rustup target add x86_64-apple-darwin aarch64-apple-darwin - run: make release-macos - name: Release version - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: append_body: true token: ${{ secrets.GITHUB_TOKEN }}