fix: toolchains unavailable when compiling

This commit is contained in:
Quinn
2025-04-07 19:07:43 +02:00
committed by Quinn
parent 63b672c4ed
commit 6adc2f2767

View File

@@ -18,10 +18,15 @@ jobs:
OUT: mcaselector-lite-linux-x86_64-${{github.event.release.tag_name || github.event.inputs.release_tag}}.zip OUT: mcaselector-lite-linux-x86_64-${{github.event.release.tag_name || github.event.inputs.release_tag}}.zip
steps: steps:
- uses: actions/checkout@v4 # clone the repo - uses: actions/checkout@v4 # clone the repo
# install tool chains
- name: install clang - name: install clang
run: | run: |
sudo apt update apt update
sudo apt install clang apt install clang -y
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
# compile the binary # compile the binary
- run: make compile ARCH=linux-x86_64 - run: make compile ARCH=linux-x86_64
- run: -rv zip ${{env.OUT}} bin/linux-x86_64/rel/* - 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 OUT: mcaselector-lite-win-x86_64-${{github.event.release.tag_name || github.event.inputs.release_tag}}.zip
steps: steps:
- uses: actions/checkout@v4 # clone the repo - uses: actions/checkout@v4 # clone the repo
# install tool chains
- name: install clang - name: install clang
run: | run: |
sudo apt update apt update
sudo apt install clang apt install clang -y
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
# compile the binary # compile the binary
- run: make compile ARCH=win-x86_64 - run: make compile ARCH=win-x86_64
- run: -rv zip ${{env.OUT}} bin/win-x86_64/rel/* - run: -rv zip ${{env.OUT}} bin/win-x86_64/rel/*