mirror of
https://github.com/xHyroM/zed-discord-presence.git
synced 2024-11-22 14:11:04 +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
|
name: Install rust
|
||||||
description: Installs the latest version of rust, rustfmt & clippy
|
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:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
|
|
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
|
@ -45,6 +45,11 @@ jobs:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: install rust
|
||||||
|
uses: ./.github/actions/install-rust
|
||||||
|
with:
|
||||||
|
targets: "${{ matrix.target }}"
|
||||||
|
|
||||||
- name: build binary
|
- name: build binary
|
||||||
run: cargo build -p discord-presence-lsp --verbose --locked --release --target ${{ matrix.target }}
|
run: cargo build -p discord-presence-lsp --verbose --locked --release --target ${{ matrix.target }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue