|
16 | 16 | steps: |
17 | 17 | - uses: actions/checkout@v4 |
18 | 18 |
|
| 19 | + - name: Install Ubuntu build deps |
| 20 | + if: runner.os == 'Linux' |
| 21 | + shell: bash |
| 22 | + run: | |
| 23 | + sudo apt-get update |
| 24 | + sudo apt-get install -y flex bison libgmp-dev libmpfr-dev |
| 25 | +
|
| 26 | + - name: Stabilize generated configure script timestamp |
| 27 | + shell: bash |
| 28 | + run: touch configure |
| 29 | + |
19 | 30 | - name: Configure |
20 | 31 | shell: bash |
21 | 32 | run: ./configure |
|
39 | 50 | steps: |
40 | 51 | - uses: actions/checkout@v4 |
41 | 52 |
|
| 53 | + - name: Install Ubuntu build deps |
| 54 | + if: runner.os == 'Linux' |
| 55 | + shell: bash |
| 56 | + run: | |
| 57 | + sudo apt-get update |
| 58 | + sudo apt-get install -y flex bison libgmp-dev libmpfr-dev |
| 59 | +
|
42 | 60 | - name: Create Build Environment |
43 | 61 | run: cmake -E make_directory ${{github.workspace}}/build |
44 | 62 |
|
@@ -76,27 +94,27 @@ jobs: |
76 | 94 | steps: |
77 | 95 | - uses: actions/checkout@v4 |
78 | 96 |
|
| 97 | + - name: Setup Perl |
| 98 | + uses: shogo82148/actions-setup-perl@v1 |
| 99 | + |
79 | 100 | - name: Create Build Environment |
80 | | - shell: bash |
81 | | - run: cmake -E make_directory ${{github.workspace}}/build |
| 101 | + shell: pwsh |
| 102 | + run: cmake -E make_directory "${{ github.workspace }}\\build" |
82 | 103 |
|
83 | 104 | - name: Configure CMake |
84 | | - shell: bash |
85 | | - working-directory: ${{github.workspace}}/build |
| 105 | + shell: pwsh |
86 | 106 | run: > |
87 | | - cmake $GITHUB_WORKSPACE |
88 | | - -DCMAKE_BUILD_TYPE=$BUILD_TYPE |
| 107 | + cmake -S "${{ github.workspace }}" -B "${{ github.workspace }}\\build" |
| 108 | + -G "Visual Studio 17 2022" -A x64 |
89 | 109 | -DGECODE_ENABLE_QT=OFF |
90 | 110 | -DGECODE_ENABLE_GIST=OFF |
91 | 111 | -DGECODE_BUILD_SHARED=${{ matrix.build_shared }} |
92 | 112 | -DGECODE_BUILD_STATIC=${{ matrix.build_static }} |
93 | 113 |
|
94 | 114 | - name: Build |
95 | | - working-directory: ${{github.workspace}}/build |
96 | | - shell: bash |
97 | | - run: cmake --build . --config $BUILD_TYPE |
| 115 | + shell: pwsh |
| 116 | + run: cmake --build "${{ github.workspace }}\\build" --config ${{ env.BUILD_TYPE }} |
98 | 117 |
|
99 | 118 | - name: Build test binary |
100 | | - working-directory: ${{github.workspace}}/build |
101 | | - shell: bash |
102 | | - run: cmake --build . --config $BUILD_TYPE --target gecode-test |
| 119 | + shell: pwsh |
| 120 | + run: cmake --build "${{ github.workspace }}\\build" --config ${{ env.BUILD_TYPE }} --target gecode-test |
0 commit comments