Skip to content

Commit

Permalink
migrate CI to new official Windows opam 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tahina-pro committed Dec 19, 2024
1 parent 844354b commit d1e39b3
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,29 @@ on:
workflow_dispatch:
jobs:
build:
runs-on: [self-hosted, windows, X64]
runs-on: [self-hosted, windows, X64, opam-2-3]
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Build EverParse and its dependencies
shell: powershell
uses: actions/checkout@v4
- name: Build EverParse
shell: C:\cygwin64\bin\bash.exe --login '{0}'
run: |
.\src\package\windows\build-everparse.ps1 -WithClean -DownloadZ3
- name: Test EverParse
shell: cmd
run: |
.\everparse\everparse.cmd src\3d\tests\Arithmetic.3d src\3d\tests\FieldDependence0.3d && .\everparse\everparse.cmd src\3d\tests\Comments.3d && .\everparse\everparse.cmd --check_hashes inplace src\3d\tests\Comments.3d
eval $(opam env) && CC=x86_64-w64-mingw32-gcc.exe make -C $GITHUB_WORKSPACE -j 8 everparse && echo "There is a CR at the end of this line"
- name: Archive EverParse package
uses: actions/upload-artifact@v4
with:
name: everparse
path: everparse
include-hidden-files: true
test:
needs: build
runs-on: windows-latest
steps:
- name: Download and extract artifact
uses: actions/download-artifact@v4
with:
name: everparse
- name: Test EverParse
shell: cmd
run: |
.\everparse\everparse.cmd src\3d\tests\Arithmetic.3d src\3d\tests\FieldDependence0.3d && .\everparse\everparse.cmd src\3d\tests\Comments.3d && .\everparse\everparse.cmd --check_hashes inplace src\3d\tests\Comments.3d

0 comments on commit d1e39b3

Please sign in to comment.