-
Notifications
You must be signed in to change notification settings - Fork 49
64 lines (54 loc) · 2.01 KB
/
bitwuzla-windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
on:
workflow_call:
env:
BITWUZLA_VERSION: 0.6.1
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cache Bitwuzla build
id: cache-bitwuzla
uses: actions/cache@v4
with:
path: bitwuzla/build/install
key: ${{ runner.os }}-bitwuzla-install-${{ env.BITWUZLA_VERSION }}
- name: Install Packages
if: steps.cache-bitwuzla.outputs.cache-hit != 'true'
run: |
sudo apt-get update
sudo apt-get install -y libgmp-dev ninja-build mingw-w64
sudo update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix
sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
- name: Setup Python Environment
if: steps.cache-bitwuzla.outputs.cache-hit != 'true'
run: |
python3 -m venv ~/.bitwuzla-venv
source ~/.bitwuzla-venv/bin/activate
python3 -m pip install meson pytest cython>=3.*
echo "$HOME/.bitwuzla-venv/bin/" >> $GITHUB_PATH
- name: Checkout
uses: actions/checkout@v4
if: steps.cache-bitwuzla.outputs.cache-hit != 'true'
with:
repository: bitwuzla/bitwuzla
ref: ${{ env.BITWUZLA_VERSION }}
path: bitwuzla
submodules: "recursive"
persist-credentials: false
- name: Wrap
if: steps.cache-bitwuzla.outputs.cache-hit != 'true'
run: meson wrap install gtest
working-directory: bitwuzla
- name: Configure
if: steps.cache-bitwuzla.outputs.cache-hit != 'true'
run: ./configure.py --prefix=${{ github.workspace }}/bitwuzla/build/install --win64
working-directory: bitwuzla
- name: Build
if: steps.cache-bitwuzla.outputs.cache-hit != 'true'
run: ninja install
working-directory: bitwuzla/build
- name: Upload Bitwuzla binary
uses: actions/upload-artifact@v4
with:
name: bitwuzla-win64
path: bitwuzla/build/install