diff --git a/.github/workflows/linux-ci.yml b/.github/workflows/linux-ci.yml new file mode 100644 index 0000000000..de79f0b2c9 --- /dev/null +++ b/.github/workflows/linux-ci.yml @@ -0,0 +1,85 @@ +name: linux-ci + +on: + - push + - pull_request + +jobs: + build-ubuntu: + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + os: + - ubuntu + compiler: + - clang + - gcc + strictness: + - "normal" + - "strict" + + steps: + - name: Configure environment + run: | + { + HB_USER_CFLAGS="" + HB_USER_LDFLAGS="" + case ${{matrix.strictness}} in + normal) ;; + strict) HB_USER_CFLAGS="$HB_USER_CFLAGS -Werror" ;; + esac + echo HB_BUILD_VERBOSE="yes" + echo HB_USER_CFLAGS="$HB_USER_CFLAGS" + echo HB_USER_LDFLAGS="$HB_USER_LDFLAGS" + } >> $GITHUB_ENV + tee -a $GITHUB_PATH <> $GITHUB_ENV + tee -a $GITHUB_PATH <> $GITHUB_ENV + tee -a $GITHUB_PATH < + mingw-w64-${{ env.msys_cpu }}-ccache + mingw-w64-${{ env.msys_cpu }}-gcc + mingw-w64-${{ env.msys_cpu }}-make + mingw-w64-${{ env.msys_cpu }}-allegro + mingw-w64-${{ env.msys_cpu }}-bzip2 + mingw-w64-${{ env.msys_cpu }}-cairo + mingw-w64-${{ env.msys_cpu }}-curl + mingw-w64-${{ env.msys_cpu }}-firebird2-git + mingw-w64-${{ env.msys_cpu }}-freeimage + mingw-w64-${{ env.msys_cpu }}-libgd + mingw-w64-${{ env.msys_cpu }}-ghostscript + mingw-w64-${{ env.msys_cpu }}-libmariadbclient + mingw-w64-${{ env.msys_cpu }}-openssl + mingw-w64-${{ env.msys_cpu }}-postgresql + mingw-w64-${{ env.msys_cpu }}-qt5-base + + - name: Checkout code + uses: actions/checkout@v3 + with: + ref: ${{ github.event.client_payload.branch }} + + - run: pwd + - run: ls + + - name: Prepare ccache using action + uses: hendrikmuhs/ccache-action@v1.2.10 + with: + key: ${{ matrix.os }}-${{ matrix.cpu }}-${{ matrix.compiler }}-${{ matrix.strictness }}-ci + max-size: "32M" + + - name: Compile Harbour + shell: msys2 {0} + run: | + mingw32-make.exe \ + HB_COMPILER=${{matrix.compiler}} \ + HB_CPU=${{matrix.cpu}} \ + -j2 + + - name: Run tests + shell: msys2 {0} + run: | + bin/win/${{matrix.compiler}}/hbtest.exe diff --git a/ChangeLog.txt b/ChangeLog.txt index 4e28a4b6c8..99ac0cf07b 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -7,6 +7,12 @@ Entries may not always be in chronological/commit order. See license at the end of file. */ +2023-11-09 15:07 UTC+0100 Phil Krylov (phil a t krylov.eu) + * .github/workflows/linux-ci.yml + * .github/workflows/macos-ci.yml + * .github/workflows/windows-ci.yml + + Added GitHub Actions CI workflows. + 2023-10-29 14:27 UTC+0100 Enrico Maria Giordano (e.m.giordano@emagsoftware.it) * contrib/hbssl/hbssl.hbp ! added support for Openssl 3