ci: set target & install rust

This commit is contained in:
Jozef Steinhübl 2024-07-19 16:36:28 +02:00
parent 49992a0c0c
commit 0c2044b1a0
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F
2 changed files with 11 additions and 0 deletions

View file

@ -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:

View file

@ -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 }}