|
35 | 35 | jobs:
|
36 | 36 | ubuntu-low-compiler:
|
37 | 37 | if: ${{ !(github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository != 'elfmz/far2l') }}
|
38 |
| - runs-on: ubuntu-20.04 |
39 |
| - |
| 38 | + runs-on: ubuntu-latest |
40 | 39 | strategy:
|
41 | 40 | fail-fast: false
|
42 | 41 | matrix:
|
43 |
| - compiler: [ gcc, clang ] |
44 |
| - include: |
45 |
| - - compiler: gcc |
46 |
| - version: 7 |
47 |
| - c: /usr/bin/gcc-7 |
48 |
| - cxx: /usr/bin/g++-7 |
49 |
| - - compiler: clang |
50 |
| - version: 7 |
51 |
| - c: /usr/bin/clang-7 |
52 |
| - cxx: /usr/bin/clang++-7 |
| 42 | + compiler: [ gcc7, clang7 ] |
53 | 43 |
|
54 |
| - name: ubuntu-${{ matrix.compiler }}-${{ matrix.version }} |
| 44 | + name: ubuntu-${{ matrix.compiler }} |
55 | 45 |
|
56 | 46 | steps:
|
57 | 47 | - name: Checkout source
|
58 | 48 | uses: actions/checkout@v4
|
59 | 49 |
|
60 |
| - - name: Install compilers |
61 |
| - run: > |
62 |
| - sudo apt-get update; |
63 |
| - sudo apt-get -y install gcc-7 g++-7 clang-7 |
64 |
| -
|
65 |
| - - name: Install far2l dependencies |
66 |
| - run: > |
67 |
| - sudo apt-get -y install |
68 |
| - libuchardet-dev libxml2-dev libwxgtk3.0-gtk3-dev |
69 |
| - libx11-dev libxi-dev |
70 |
| - libssl-dev libsmbclient-dev libnfs-dev libneon27-dev libssh-dev |
71 |
| - libarchive-dev |
72 |
| - python3-dev python3-cffi |
73 |
| - |
74 |
| - - name: Create Build Environment |
75 |
| - # Create a separate build directory as working directory for all subsequent commands |
76 |
| - run: mkdir -p _build |
77 |
| - |
78 |
| - - name: Configure CMake |
79 |
| - # Use a bash shell so we can use the same syntax for environment variable |
80 |
| - # access regardless of the host operating system |
81 |
| - shell: bash |
82 |
| - # -S and -B options specify source and build directories |
83 |
| - run: > |
84 |
| - cmake -S . -B _build -Wno-dev -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DPYTHON=yes |
85 |
| - -DCMAKE_C_COMPILER=${{ matrix.c }} -DCMAKE_CXX_COMPILER=${{ matrix.cxx }} |
86 |
| - |
87 |
| - - name: Build |
88 |
| - shell: bash |
89 |
| - # Execute the build. You can specify a specific target with "--target <NAME>" |
| 50 | + - name: 'Build in docker' |
90 | 51 | run: |
|
91 |
| - cmake --build _build --config $BUILD_TYPE -j$(nproc --all) |
92 |
| - |
| 52 | + docker build -f _ci/Dockerfile.${{ matrix.compiler }} -t tempx:latest . |
| 53 | +
|
93 | 54 | ubuntu-medium-compiler:
|
94 | 55 | if: ${{ !(github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository != 'elfmz/far2l') }}
|
95 | 56 | runs-on: ubuntu-22.04
|
|
0 commit comments