Use homebrew llvm@20 instead of apple clang #51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: linux | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
include: | |
- build_type: debug | |
lto: "n" | |
- build_type: release | |
lto: "n" | |
- build_type: release | |
lto: "y" | |
concurrency: | |
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-linux-${{ matrix.build_type }}-${{ matrix.lto }} | |
cancel-in-progress: true | |
steps: | |
- name: Free Disk Space | |
uses: jlumbroso/free-disk-space@main | |
- name: Setup llvm | |
run: | | |
wget https://apt.llvm.org/llvm.sh | |
chmod +x llvm.sh | |
sudo ./llvm.sh 20 all | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup xmake | |
uses: xmake-io/github-action-setup-xmake@v1 | |
with: | |
xmake-version: '2.9.9' | |
actions-cache-folder: '.xmake-cache' | |
- name: Package | |
run: | | |
xmake config --yes --verbose --toolchain=clang-20 --mode=${{ matrix.build_type }} --policies=build.optimization.lto:${{ matrix.lto }} | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: linux-${{ matrix.build_type }}-lto_${{ matrix.lto }}.tar.xz | |
path: build/package/* | |
compression-level: 0 | |
if-no-files-found: error |