diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index f9263756e..e361b2b6a 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -3,10 +3,10 @@ name: builds on: push: paths-ignore: - - '**.md' + - "**.md" pull_request: paths-ignore: - - '**.md' + - "**.md" jobs: build-windows-2022: @@ -33,6 +33,36 @@ jobs: call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 call build "${{ matrix.target }}" "${{ matrix.compiler }}" "${{ matrix.mode }}" || exit /b 1 + build-ubuntu: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + target: + - raddbg + # - radlink TODO + # - rdi_from_pdb TODO + # - rdi_from_dwarf TODO + # - rdi_breakpad_from_pdb TODO + - ryan_scratch + compiler: + - gcc + - clang + mode: + - debug + - release + steps: + - name: checkout + uses: actions/checkout@v2 + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y build-essential clang libx11-dev libxext-dev libfreetype-dev libgl-dev libegl-dev + + - name: build (ubuntu) + run: | + bash build.sh ${{ matrix.target }} ${{ matrix.compiler }} ${{ matrix.mode }} + run-torture: runs-on: windows-2022 steps: diff --git a/build.sh b/build.sh index f7ea61395..d88128c5e 100644 --- a/build.sh +++ b/build.sh @@ -24,7 +24,7 @@ clang_debug="$compiler -g -O0 -DBUILD_DEBUG=1 ${clang_common} ${auto_compile_fla clang_release="$compiler -g -O2 -DBUILD_DEBUG=0 ${clang_common} ${auto_compile_flags}" clang_link="-lpthread -lm -lrt -ldl" clang_out="-o" -gcc_common="-I../src/ -I../local/ -g -DBUILD_GIT_HASH=\"$git_hash\" -DBUILD_GIT_HASH_FULL=\"$git_hash_full\" -Wno-unknown-warning-option -Wall -Wno-missing-braces -Wno-unused-function -Wno-attributes -Wno-unused-value -Wno-unused-variable -Wno-unused-local-typedef -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-compare-distinct-pointer-types -D_USE_MATH_DEFINES -Dstrdup=_strdup -Dgnu_printf=printf" +gcc_common="-I../src/ -I/usr/include/freetype2/ -I../local/ -g -DBUILD_GIT_HASH=\"$git_hash\" -DBUILD_GIT_HASH_FULL=\"$git_hash_full\" -Wno-unknown-warning-option -Wall -Wno-missing-braces -Wno-unused-function -Wno-attributes -Wno-unused-value -Wno-unused-variable -Wno-unused-local-typedef -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-compare-distinct-pointer-types -D_USE_MATH_DEFINES -Dstrdup=_strdup -Dgnu_printf=printf" gcc_debug="$compiler -g -O0 -DBUILD_DEBUG=1 ${gcc_common} ${auto_compile_flags}" gcc_release="$compiler -g -O2 -DBUILD_DEBUG=0 ${gcc_common} ${auto_compile_flags}" gcc_link="-lpthread -lm -lrt -ldl"