mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 07:35:45 +01:00
fix: toolchains unavailable when compiling
This commit is contained in:
18
.github/workflows/release.yaml
vendored
18
.github/workflows/release.yaml
vendored
@@ -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/*
|
||||||
|
|||||||
Reference in New Issue
Block a user