Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
tags:
- "v*"
pull_request:
workflow_dispatch:

jobs:
Expand All @@ -22,10 +23,6 @@ jobs:
os: windows-latest
name: windows-x86_64
archive: zip
- target: x86_64-apple-darwin
os: macos-latest
name: macos-x86_64
archive: tar.gz
- target: aarch64-apple-darwin
os: macos-14
name: macos-aarch64
Expand All @@ -43,6 +40,22 @@ jobs:
- name: Cache dependencies
uses: Swatinem/rust-cache@v2

- name: Install dependencies (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: sudo apt install libdbus-1-dev pkg-config

- name: Install dependencies (macOS)
if: startsWith(matrix.os, 'macos')
run: brew install pkg-config openssl

- name: Install dependencies (Windows)
if: matrix.os == 'windows-latest'
shell: bash
run: |
vcpkg install openssl:x64-windows-static
echo "VCPKG_ROOT=C:\vcpkg" >> $GITHUB_ENV
echo "OPENSSL_DIR=C:\vcpkg\packages\openssl_x64-windows-static" >> $GITHUB_ENV

- name: Build release binary
run: cargo build --release --target ${{ matrix.target }}

Expand Down
1 change: 1 addition & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]
Loading