mirror of
https://github.com/xHyroM/zed-discord-presence.git
synced 2024-11-12 17:38:06 +01:00
ci: set target & install rust
This commit is contained in:
parent
49992a0c0c
commit
0c2044b1a0
2 changed files with 11 additions and 0 deletions
6
.github/actions/install-rust/action.yml
vendored
6
.github/actions/install-rust/action.yml
vendored
|
@ -1,6 +1,12 @@
|
|||
name: Install rust
|
||||
description: Installs the latest version of rust, rustfmt & clippy
|
||||
|
||||
inputs:
|
||||
targets:
|
||||
description: Comma-separated list of target triples to install for this toolchain
|
||||
default: x86_64-unknown-linux-gnu
|
||||
required: false
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
|
|
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
|
@ -45,6 +45,11 @@ jobs:
|
|||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: install rust
|
||||
uses: ./.github/actions/install-rust
|
||||
with:
|
||||
targets: "${{ matrix.target }}"
|
||||
|
||||
- name: build binary
|
||||
run: cargo build -p discord-presence-lsp --verbose --locked --release --target ${{ matrix.target }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue