Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Jul 2, 2024
1 parent a8ae1f7 commit eb8c066
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
25 changes: 9 additions & 16 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit eb8c066

Please sign in to comment.