bootstrap: test building clingo from sources on windows (#44624)

This commit is contained in:
John W. Parent 2024-06-20 12:39:58 -04:00 committed by GitHub
parent e867008819
commit 58db81c323
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,10 +53,10 @@ jobs:
runs-on: ${{ matrix.runner }} runs-on: ${{ matrix.runner }}
strategy: strategy:
matrix: matrix:
runner: ['macos-13', 'macos-14', "ubuntu-latest"] runner: ['macos-13', 'macos-14', "ubuntu-latest", "windows-latest"]
steps: steps:
- name: Setup macOS - name: Setup macOS
if: ${{ matrix.runner != 'ubuntu-latest' }} if: ${{ matrix.runner != 'ubuntu-latest' && matrix.runner != 'windows-latest' }}
run: | run: |
brew install cmake bison tree brew install cmake bison tree
- name: Checkout - name: Checkout
@ -67,13 +67,17 @@ jobs:
with: with:
python-version: "3.12" python-version: "3.12"
- name: Bootstrap clingo - name: Bootstrap clingo
env:
SETUP_SCRIPT_EXT: ${{ matrix.runner == 'windows-latest' && 'ps1' || 'sh' }}
SETUP_SCRIPT_SOURCE: ${{ matrix.runner == 'windows-latest' && './' || 'source ' }}
USER_SCOPE_PARENT_DIR: ${{ matrix.runner == 'windows-latest' && '$env:userprofile' || '$HOME' }}
run: | run: |
source share/spack/setup-env.sh ${{ env.SETUP_SCRIPT_SOURCE }}share/spack/setup-env.${{ env.SETUP_SCRIPT_EXT }}
spack bootstrap disable github-actions-v0.5 spack bootstrap disable github-actions-v0.5
spack bootstrap disable github-actions-v0.4 spack bootstrap disable github-actions-v0.4
spack external find --not-buildable cmake bison spack external find --not-buildable cmake bison
spack -d solve zlib spack -d solve zlib
tree ~/.spack/bootstrap/store/ tree ${{ env.USER_SCOPE_PARENT_DIR }}/.spack/bootstrap/store/
gnupg-sources: gnupg-sources:
runs-on: ${{ matrix.runner }} runs-on: ${{ matrix.runner }}