From 6adc2f2767bd9a0c419ec1a83efddc0ec94fa973 Mon Sep 17 00:00:00 2001 From: Quinn Date: Mon, 7 Apr 2025 19:07:43 +0200 Subject: [PATCH] fix: toolchains unavailable when compiling --- .github/workflows/release.yaml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ec0ed91..5aa562c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -18,10 +18,15 @@ jobs: OUT: mcaselector-lite-linux-x86_64-${{github.event.release.tag_name || github.event.inputs.release_tag}}.zip steps: - uses: actions/checkout@v4 # clone the repo + # install tool chains - name: install clang run: | - sudo apt update - sudo apt install clang + apt update + apt install clang -y + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true # compile the binary - run: make compile ARCH=linux-x86_64 - run: -rv zip ${{env.OUT}} bin/linux-x86_64/rel/* @@ -42,10 +47,15 @@ jobs: OUT: mcaselector-lite-win-x86_64-${{github.event.release.tag_name || github.event.inputs.release_tag}}.zip steps: - uses: actions/checkout@v4 # clone the repo + # install tool chains - name: install clang run: | - sudo apt update - sudo apt install clang + apt update + apt install clang -y + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true # compile the binary - run: make compile ARCH=win-x86_64 - run: -rv zip ${{env.OUT}} bin/win-x86_64/rel/*