diff options
author | John W. Parent <45471568+johnwparent@users.noreply.github.com> | 2024-06-20 12:39:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-20 16:39:58 +0000 |
commit | 58db81c3233b5a0fd81f555b6152f1e00d336f65 (patch) | |
tree | 1c9ea515631d61d8efcce97dbc03fd40db433e8f /.github/workflows/bootstrap.yml | |
parent | e8670088192e5d7e324298e6ac73b21b1dc1fb4e (diff) | |
download | spack-58db81c3233b5a0fd81f555b6152f1e00d336f65.tar.gz spack-58db81c3233b5a0fd81f555b6152f1e00d336f65.tar.bz2 spack-58db81c3233b5a0fd81f555b6152f1e00d336f65.tar.xz spack-58db81c3233b5a0fd81f555b6152f1e00d336f65.zip |
bootstrap: test building clingo from sources on windows (#44624)
Diffstat (limited to '.github/workflows/bootstrap.yml')
-rw-r--r-- | .github/workflows/bootstrap.yml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/.github/workflows/bootstrap.yml b/.github/workflows/bootstrap.yml index 0e7fd2717c..25e74d38bc 100644 --- a/.github/workflows/bootstrap.yml +++ b/.github/workflows/bootstrap.yml @@ -53,10 +53,10 @@ jobs: runs-on: ${{ matrix.runner }} strategy: matrix: - runner: ['macos-13', 'macos-14', "ubuntu-latest"] + runner: ['macos-13', 'macos-14', "ubuntu-latest", "windows-latest"] steps: - name: Setup macOS - if: ${{ matrix.runner != 'ubuntu-latest' }} + if: ${{ matrix.runner != 'ubuntu-latest' && matrix.runner != 'windows-latest' }} run: | brew install cmake bison tree - name: Checkout @@ -67,13 +67,17 @@ jobs: with: python-version: "3.12" - 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: | - 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.4 spack external find --not-buildable cmake bison spack -d solve zlib - tree ~/.spack/bootstrap/store/ + tree ${{ env.USER_SCOPE_PARENT_DIR }}/.spack/bootstrap/store/ gnupg-sources: runs-on: ${{ matrix.runner }} |