Fix: update workflow for new cache location

This commit is contained in:
Alejandro R. Mosteo
2024-03-15 10:48:24 +01:00
parent fbd2c3351e
commit e5919c482a
2 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ name: Build Crate (alr dev)
env:
CHECKS_ORG: alire-project
CHECKS_REPO: alire-index-checks
PACMAN: C:\Users\runneradmin\AppData\Local\alire\cache\msys64\usr\bin\pacman
on:
pull_request:
@@ -55,7 +56,7 @@ jobs:
- name: Install tar from msys2 (Windows) # Git tar in Actions VM does not seem to work)
if: matrix.os == 'windows-latest'
run: C:\Users\runneradmin\AppData\Local\alire\cache\msys64\usr\bin\pacman --noconfirm -S tar
run: ${{env.PACMAN}} --noconfirm -S tar
- name: Test crate
run: ${{env.CHECKS_REPO}}/scripts/gh-build-crate.sh
+4 -3
View File
@@ -7,6 +7,7 @@ env:
CHECKS_ORG: alire-project
CHECKS_REPO: alire-index-checks
ALR_VERSION: 2.0.0
PACMAN: C:\Users\runneradmin\AppData\Local\alire\cache\msys64\usr\bin\pacman
on:
pull_request:
@@ -48,20 +49,20 @@ jobs:
# By default, this also sets up the newest indexed native toolchain
- name: Set up stable `alr`
if: contains(github.base_ref, 'stable-')
uses: alire-project/setup-alire@v2
uses: alire-project/setup-alire@v3
with:
version: ${{env.ALR_VERSION}}
# By default, this also sets up the newest indexed native toolchain
- name: Set up devel `alr`
if: contains(github.base_ref, 'devel-')
uses: alire-project/setup-alire@v2
uses: alire-project/setup-alire@v3
with:
branch: 'master'
- name: Install tar from msys2 (Windows) # Git tar in Actions VM does not seem to work)
if: matrix.os == 'windows-latest'
run: C:\Users\runneradmin\.cache\alire\msys64\usr\bin\pacman --noconfirm -S tar
run: ${{env.PACMAN}} --noconfirm -S tar
- name: Test crate
run: ${{env.CHECKS_REPO}}/scripts/gh-build-crate.sh