From 0c2044b1a00ff230d471814a1f7088ce75fc5aa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Fri, 19 Jul 2024 16:36:28 +0200 Subject: [PATCH] ci: set target & install rust --- .github/actions/install-rust/action.yml | 6 ++++++ .github/workflows/release.yml | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/.github/actions/install-rust/action.yml b/.github/actions/install-rust/action.yml index 877bca4..a550357 100644 --- a/.github/actions/install-rust/action.yml +++ b/.github/actions/install-rust/action.yml @@ -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: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6838554..9ce82fc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }}