From 3fb35eb51ca4962e4a9092254a8309cbc44ea0af Mon Sep 17 00:00:00 2001 From: AntoinePrv Date: Thu, 1 Oct 2026 11:56:06 +0200 Subject: [PATCH 1/2] Use compiler action --- .github/workflows/linux.yml | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 5cbd270..6aa8bff 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -28,27 +28,10 @@ jobs: - { compiler: 'clang', version: '18', flags: 'avx512' } steps: - name: Setup compiler - if: ${{ matrix.sys.compiler == 'gcc' }} - run: | - GCC_VERSION=${{ matrix.sys.version }} - sudo apt-get update - sudo apt-get --no-install-suggests --no-install-recommends install g++-$GCC_VERSION - CC=gcc-$GCC_VERSION - echo "CC=$CC" >> $GITHUB_ENV - CXX=g++-$GCC_VERSION - echo "CXX=$CXX" >> $GITHUB_ENV - - name: Setup compiler - if: ${{ matrix.sys.compiler == 'clang' }} - run: | - LLVM_VERSION=${{ matrix.sys.version }} - sudo apt-get update || exit 1 - sudo apt-get --no-install-suggests --no-install-recommends install clang-$LLVM_VERSION || exit 1 - sudo apt-get --no-install-suggests --no-install-recommends install g++ g++-multilib || exit 1 - sudo ln -s /usr/include/asm-generic /usr/include/asm - CC=clang-$LLVM_VERSION - echo "CC=$CC" >> $GITHUB_ENV - CXX=clang++-$LLVM_VERSION - echo "CXX=$CXX" >> $GITHUB_ENV + uses: xtensor-stack/xsimd/.github/actions/setup-compiler-apt@main + with: + compiler: ${{ matrix.sys.compiler }} + version: ${{ matrix.sys.version }} - name: Checkout xsimd-algorithm uses: actions/checkout@v7 - name: Set conda environment From d96eb61255c878edfb1a86f11058f494a056d4fc Mon Sep 17 00:00:00 2001 From: AntoinePrv Date: Thu, 1 Oct 2026 12:23:15 +0200 Subject: [PATCH 2/2] Fix branch name --- .github/workflows/linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 6aa8bff..5d664da 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -28,7 +28,7 @@ jobs: - { compiler: 'clang', version: '18', flags: 'avx512' } steps: - name: Setup compiler - uses: xtensor-stack/xsimd/.github/actions/setup-compiler-apt@main + uses: xtensor-stack/xsimd/.github/actions/setup-compiler-apt@master with: compiler: ${{ matrix.sys.compiler }} version: ${{ matrix.sys.version }}