|
| 1 | +name: CI |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + push: |
| 6 | + |
| 7 | +permissions: |
| 8 | + contents: read |
| 9 | + |
| 10 | +env: |
| 11 | + FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" |
| 12 | + YICES_REF: yices-2.7.0 |
| 13 | + |
| 14 | +jobs: |
| 15 | + unix: |
| 16 | + name: ${{ matrix.os }} |
| 17 | + runs-on: ${{ matrix.os }} |
| 18 | + strategy: |
| 19 | + fail-fast: false |
| 20 | + matrix: |
| 21 | + os: |
| 22 | + - ubuntu-latest |
| 23 | + - macos-latest |
| 24 | + |
| 25 | + steps: |
| 26 | + - uses: actions/checkout@v5 |
| 27 | + |
| 28 | + - name: Checkout Yices |
| 29 | + uses: actions/checkout@v5 |
| 30 | + with: |
| 31 | + repository: SRI-CSL/yices2 |
| 32 | + ref: ${{ env.YICES_REF }} |
| 33 | + path: y2 |
| 34 | + fetch-depth: 1 |
| 35 | + sparse-checkout: | |
| 36 | + Makefile |
| 37 | + Makefile.build |
| 38 | + configure |
| 39 | + configure.ac |
| 40 | + config.guess |
| 41 | + config.sub |
| 42 | + gmaketest |
| 43 | + install-sh |
| 44 | + make.include.in |
| 45 | + autoconf |
| 46 | + configs |
| 47 | + scripts |
| 48 | + src |
| 49 | + utils |
| 50 | + sparse-checkout-cone-mode: false |
| 51 | + |
| 52 | + - name: Set up Java |
| 53 | + uses: actions/setup-java@v5 |
| 54 | + with: |
| 55 | + distribution: temurin |
| 56 | + java-version: "17" |
| 57 | + |
| 58 | + - name: Install Linux dependencies |
| 59 | + if: runner.os == 'Linux' |
| 60 | + run: | |
| 61 | + sudo apt-get update |
| 62 | + sudo apt-get install -y ant autoconf automake g++ gcc gperf libgmp-dev libtool m4 make pkg-config |
| 63 | +
|
| 64 | + - name: Install macOS dependencies |
| 65 | + if: runner.os == 'macOS' |
| 66 | + env: |
| 67 | + HOMEBREW_NO_AUTO_UPDATE: "1" |
| 68 | + run: | |
| 69 | + brew install ant autoconf automake gmp gperf libtool make pkg-config |
| 70 | +
|
| 71 | + - name: Build and test |
| 72 | + env: |
| 73 | + YICES_SRC: ${{ github.workspace }}/y2 |
| 74 | + YICES_PREFIX: ${{ runner.temp }}/yices-install |
| 75 | + run: bash scripts/ci-build-test-unix.sh |
| 76 | + |
| 77 | + windows: |
| 78 | + name: windows-latest |
| 79 | + runs-on: windows-latest |
| 80 | + |
| 81 | + steps: |
| 82 | + - run: git config --system core.longpaths true |
| 83 | + |
| 84 | + - run: git config --global core.autocrlf false && git config --global core.eol lf |
| 85 | + |
| 86 | + - uses: actions/checkout@v5 |
| 87 | + |
| 88 | + - name: Checkout Yices |
| 89 | + uses: actions/checkout@v5 |
| 90 | + with: |
| 91 | + repository: SRI-CSL/yices2 |
| 92 | + ref: ${{ env.YICES_REF }} |
| 93 | + path: y2 |
| 94 | + fetch-depth: 1 |
| 95 | + sparse-checkout: | |
| 96 | + Makefile |
| 97 | + Makefile.build |
| 98 | + configure |
| 99 | + configure.ac |
| 100 | + config.guess |
| 101 | + config.sub |
| 102 | + gmaketest |
| 103 | + install-sh |
| 104 | + make.include.in |
| 105 | + autoconf |
| 106 | + configs |
| 107 | + scripts |
| 108 | + src |
| 109 | + utils |
| 110 | + sparse-checkout-cone-mode: false |
| 111 | + |
| 112 | + - name: Set up Java |
| 113 | + uses: actions/setup-java@v5 |
| 114 | + with: |
| 115 | + distribution: temurin |
| 116 | + java-version: "17" |
| 117 | + |
| 118 | + - name: Install Ant |
| 119 | + shell: powershell |
| 120 | + run: choco install ant -y |
| 121 | + |
| 122 | + - name: Install Cygwin dependencies |
| 123 | + uses: cygwin/cygwin-install-action@v4 |
| 124 | + with: |
| 125 | + packages: | |
| 126 | + autoconf, |
| 127 | + automake, |
| 128 | + cmake, |
| 129 | + coreutils, |
| 130 | + curl, |
| 131 | + gperf, |
| 132 | + libtool, |
| 133 | + m4, |
| 134 | + make, |
| 135 | + mingw64-x86_64-gcc-core, |
| 136 | + mingw64-x86_64-gcc-g++, |
| 137 | + moreutils, |
| 138 | + wget |
| 139 | +
|
| 140 | + - name: Build and test |
| 141 | + shell: bash |
| 142 | + env: |
| 143 | + CYGWIN: winsymlinks:native binmode |
| 144 | + YICES_SRC: ${{ github.workspace }}/y2 |
| 145 | + YICES_PREFIX: /tmp/yices-install |
| 146 | + run: bash scripts/ci-build-test-windows.sh |
0 commit comments