Skip to content

Commit

Permalink
Update release action
Browse files Browse the repository at this point in the history
  • Loading branch information
trumank committed Aug 4, 2023
1 parent a9288ce commit 92023b8
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install Rust
run: rustup update 1.70.0 --no-self-update && rustup default 1.70.0
run: rustup update nightly --no-self-update && rustup default nightly
- name: Install cargo-dist
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.0.7/cargo-dist-installer.sh | sh
- id: create-release
Expand Down Expand Up @@ -101,14 +101,22 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install Rust
run: rustup update 1.70.0 --no-self-update && rustup default 1.70.0
run: rustup update nightly --no-self-update && rustup default nightly
- name: Install x86_64-pc-windows-gnu target
if: runner.os == 'Linux' || runner.os == 'macOS'
run: rustup target add x86_64-pc-windows-gnu
- name: Cache Dependencies
uses: Swatinem/rust-cache@v2
- name: Install cargo-dist
run: ${{ matrix.install-dist }}
- name: Install packages (Linux)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install libgtk-3-dev
run: sudo apt-get update && sudo apt-get install libgtk-3-dev gcc-mingw-w64
- name: Install packages (MacOS)
if: runner.os == 'macOS'
run: |
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install mingw-w64
- name: Run cargo-dist
# This logic is a bit janky because it's trying to be a polyglot between
# powershell and bash since this will run on windows, macos, and linux!
Expand Down

0 comments on commit 92023b8

Please sign in to comment.