contrib/hbwin: Fixed dangling pointer access in WIN_DRAWBITMAP(). #23
Workflow file for this run
This file contains 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: vm1-ci | |
on: | |
- push | |
- pull_request | |
jobs: | |
vm1-ci: | |
runs-on: macos-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- name: freebsd | |
version: "13.2" | |
- name: netbsd | |
version: "9.3" | |
- name: openbsd | |
version: "7.4" | |
- name: sunos | |
compiler: | |
- clang | |
- gcc | |
strictness: | |
- "normal" | |
- "strict" | |
exclude: | |
- os: {name: netbsd} | |
compiler: clang | |
- os: {name: openbsd} | |
compiler: gcc | |
- os: {name: sunos} | |
steps: | |
- name: Configure environment | |
run: | | |
echo "Nothing to do for ${{ matrix.os.name }}" | |
- name: Install packages | |
run: | | |
echo "The actual install takes place in the VM in the build step" | |
tee ~/work/install_freebsd_deps.sh <<EOF | |
#!/bin/sh | |
sudo pkg install -y \ | |
bison ccache gmake \ | |
$(case ${{matrix.compiler }} in | |
(gcc) echo ${{matrix.compiler}} ;; esac) \ | |
libslang2 \ | |
cairo \ | |
libgd \ | |
mariadb-connector-c \ | |
postgresql16-client \ | |
qt5-buildtools qt5-gui | |
EOF | |
# Dependencies for disabled contribs: | |
# freeimage \ | |
tee ~/work/install_netbsd_deps.sh <<EOF | |
#!/bin/sh | |
set -ex | |
sudo pkgin -y install \ | |
bison ccache gmake | |
EOF | |
tee ~/work/install_openbsd_deps.sh <<EOF | |
#!/bin/sh | |
set -ex | |
sudo pkg_add \ | |
bison ccache gmake \ | |
$(case ${{matrix.compiler }} in | |
(gcc) echo ${{matrix.compiler}} ;; esac) | |
EOF | |
tee ~/work/install_sunos_deps.sh <<EOF | |
set -ex | |
pkg install SUNWgit SUNWgcc SUNWgmake | |
EOF | |
chmod a+x ~/work/install_*_deps.sh | |
- 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/[email protected] | |
with: | |
key: ${{ matrix.os.name }}-${{ matrix.compiler }}-${{ matrix.strictness }}-ci | |
max-size: "32M" | |
- name: Configure build shell | |
run: | | |
set -ex | |
HB_USER_CFLAGS="" | |
HB_USER_LDFLAGS="" | |
case ${{matrix.strictness}} in | |
normal) ;; | |
strict) case ${{matrix.compiler}} in | |
(gcc) HB_USER_CFLAGS="$HB_USER_CFLAGS -Werror -Wno-error=array-bounds" ;; | |
(*) HB_USER_CFLAGS="$HB_USER_CFLAGS -Werror" ;; | |
esac ;; | |
esac | |
tee ./.bashrc <<EOENV | |
# These contribs do not build on any platform | |
export HB_BUILD_CONTRIBS="no hbfimage" # incompatible with freeimage 3.18+ | |
export HB_BUILD_VERBOSE="yes" | |
export HB_USER_CFLAGS="$HB_USER_CFLAGS" | |
export HB_USER_LDFLAGS="$HB_USER_LDFLAGS" | |
export HB_CCACHE=ccache | |
EOENV | |
- name: Generate build script | |
run: | | |
tee ~/work/run_build.sh <<'EOF' | |
set -ex | |
echo "::group::Configure ccache in VM" | |
ccache --set-config="cache_dir=$(pwd)/.ccache" | |
ccache --set-config=max_size=32M | |
ccache --set-config=compression=true | |
ccache -p | |
echo ::group::Build Harbour | |
set -ex | |
. ./.bashrc | |
gmake -j$(/sbin/sysctl -n hw.ncpu) \ | |
HB_BUILD_CONTRIBS=no \ | |
HB_COMPILER=${{matrix.compiler}} | |
echo "::group::Build contribs" | |
set -ex | |
. ./.bashrc | |
gmake -j$(/sbin/sysctl -n hw.ncpu) \ | |
-C contrib \ | |
HB_COMPILER=${{matrix.compiler}} | |
echo "::group::Run tests" | |
set -ex | |
bin/*/${{matrix.compiler}}/hbtest | |
EOF | |
- name: Build Harbour and contribs | |
timeout-minutes: 30 | |
if: matrix.os.name != 'sunos' | |
uses: cross-platform-actions/[email protected] | |
with: | |
operating_system: ${{ matrix.os.name }} | |
architecture: x86_64 | |
version: "${{ matrix.os.version }}" | |
shell: bash | |
memory: 2G | |
cpu_count: 3 | |
sync_files: "true" | |
run: | | |
echo "::group::Install dependencies" | |
set -ex | |
~/work/install_${{ matrix.os.name }}_deps.sh | |
. ~/work/run_build.sh | |
#- name: Build Harbour and contribs on SunOS | |
# if: matrix.os.name == 'sunos' | |
# uses: vmactions/solaris-vm@v0 | |
# with: | |
# usesh: true | |
# mem: 2048 | |
# prepare: | | |
# echo "::group::Install dependencies" | |
# set -ex | |
# ~/work/install_${{ matrix.os.name }}_deps.sh | |
# run: | | |
# . ~/work/run_build.sh |