Add CI job to build on Solaris #782
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Other targets | |
| on: [push, pull_request] | |
| jobs: | |
| almalinux8: | |
| name: AlmaLinux 8 | |
| runs-on: ubuntu-latest | |
| container: almalinux:8 | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Install dependencies | |
| run: | | |
| dnf -y install epel-release | |
| dnf -y install gcc make cmake3 openssl openssl-devel libevent-devel procps-ng valkey | |
| - name: Build using cmake | |
| env: | |
| EXTRA_CMAKE_OPTS: -DENABLE_EXAMPLES:BOOL=ON -DENABLE_TLS:BOOL=ON | |
| run: mkdir build && cd build && cmake3 .. && make | |
| - name: Build using Makefile | |
| run: USE_TLS=1 TEST_ASYNC=1 make | |
| - name: Run tests | |
| working-directory: tests | |
| env: | |
| SKIPS_AS_FAILS: 1 | |
| TEST_TLS: 1 | |
| run: ./test.sh | |
| centos8: | |
| name: RockyLinux 8 | |
| runs-on: ubuntu-latest | |
| container: rockylinux:8 | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Install dependencies | |
| run: | | |
| dnf -y upgrade --refresh | |
| dnf -y install https://rpms.remirepo.net/enterprise/remi-release-8.rpm | |
| dnf -y module install redis:remi-6.0 | |
| dnf -y group install "Development Tools" | |
| dnf -y install openssl-devel cmake libevent-devel valkey | |
| - name: Build using cmake | |
| env: | |
| EXTRA_CMAKE_OPTS: -DENABLE_EXAMPLES:BOOL=ON -DENABLE_TLS:BOOL=ON | |
| run: mkdir build && cd build && cmake .. && make | |
| - name: Build using Makefile | |
| run: USE_TLS=1 TEST_ASYNC=1 make | |
| - name: Run tests | |
| working-directory: tests | |
| env: | |
| SKIPS_AS_FAILS: 1 | |
| TEST_TLS: 1 | |
| run: ./test.sh | |
| freebsd: | |
| runs-on: ubuntu-latest | |
| name: FreeBSD | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Build in FreeBSD | |
| uses: vmactions/freebsd-vm@487ce35b96fae3e60d45b521735f5aa436ecfade # v1.2.4 | |
| with: | |
| prepare: pkg install -y gmake cmake | |
| run: | | |
| gmake | |
| mkdir build && cd build && cmake .. && gmake | |
| solaris: | |
| runs-on: ubuntu-latest | |
| name: Solaris | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Build in Solaris | |
| uses: vmactions/solaris-vm@58cbd70c6e051860f9b8f65908cc582938fbbdba # v1.1.5 | |
| with: | |
| prepare: pkgutil -y -i gmake gcc5core openssl_utils | |
| run: | | |
| USE_TLS=1 gmake | |
| build-cross: | |
| name: Cross-compile ${{ matrix.config.target }} | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - {target: arm, host: arm-linux-gnueabi, qemu: arm, gccver: 12 } | |
| - {target: armhf, host: arm-linux-gnueabihf, qemu: arm, gccver: 12 } | |
| - {target: aarch64, host: aarch64-linux-gnu, qemu: aarch64, gccver: 12 } | |
| - {target: riscv64, host: riscv64-linux-gnu, qemu: riscv64, gccver: 12 } | |
| - {target: ppc, host: powerpc-linux-gnu, qemu: ppc, gccver: 12 } | |
| - {target: ppc64, host: powerpc64-linux-gnu, qemu: ppc64, gccver: 12 } | |
| - {target: ppc64le, host: powerpc64le-linux-gnu, qemu: ppc64le, gccver: 12 } | |
| - {target: s390x, host: s390x-linux-gnu, qemu: s390x, gccver: 12 } | |
| - {target: mips, host: mips-linux-gnu, qemu: mips, gccver: 10 } | |
| - {target: mips64, host: mips64-linux-gnuabi64, qemu: mips64, gccver: 10 } | |
| - {target: mipsel, host: mipsel-linux-gnu, qemu: mipsel, gccver: 10 } | |
| - {target: mips64el, host: mips64el-linux-gnuabi64, qemu: mips64el, gccver: 10 } | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Prepare | |
| uses: awalsh128/cache-apt-pkgs-action@2c09a5e66da6c8016428a2172bd76e5e4f14bb17 # v1.5.3 | |
| with: | |
| packages: gcc-${{ matrix.config.gccver }}-${{ matrix.config.host }} | |
| version: ${{ matrix.config.target }}-1.0 | |
| - name: Build | |
| env: | |
| CC: ${{ matrix.config.host }}-gcc-${{ matrix.config.gccver }} | |
| AR: ${{ matrix.config.host }}-ar | |
| run: | | |
| make |