ci: fix compat with win32 which defines VOID, CONST, etc. as macros #2244
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: Ubuntu build | |
on: [push,pull_request] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
ubuntu: | |
name: Ubuntu | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- { deploy: true , distro: jammy, CC: gcc-12, CXX: g++-12, LDFLAGS: "" } | |
- { deploy: false, distro: jammy, CC: clang-14, CXX: clang++-14, LDFLAGS: "-fuse-ld=lld" } | |
- { deploy: true, distro: lunar, CC: gcc, CXX: g++, LDFLAGS: "-fuse-ld=lld" } | |
- { deploy: false, distro: lunar, CC: clang, CXX: clang++, LDFLAGS: "-fuse-ld=lld" } | |
- { deploy: true, distro: noble, CC: gcc, CXX: g++, LDFLAGS: "-fuse-ld=lld" } | |
- { deploy: false, distro: noble, CC: clang, CXX: clang++, LDFLAGS: "-fuse-ld=lld" } | |
container: | |
image: ubuntu:${{ matrix.distro }} | |
steps: | |
- name: Install git | |
run: | | |
apt-get update -qq | |
apt-get install -qq --force-yes git | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Dependencies | |
run: | | |
./ci/${{ matrix.distro }}.deps.sh | |
- name: Build | |
env: | |
CC: ${{ matrix.CC }} | |
CXX: ${{ matrix.CXX }} | |
LDFLAGS: ${{ matrix.LDFLAGS }} | |
run: | | |
./ci/${{ matrix.distro }}.build.sh | |
- name: Deploy | |
run: | | |
./ci/${{ matrix.distro }}.deploy.sh | |
- name: Upload build | |
uses: actions/upload-artifact@v4 | |
if: matrix.deploy | |
with: | |
name: ${{ matrix.distro }}-amd64 | |
path: | | |
*.deb | |
- name: Continuous | |
uses: softprops/action-gh-release@v2 | |
if: github.event_name != 'pull_request' | |
with: | |
name: "Continuous" | |
tag_name: "continuous" | |
body: "" | |
append_body: true | |
generate_release_notes: false | |
files: | | |
*.deb | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request' | |
with: | |
body: "" | |
append_body: true | |
generate_release_notes: false | |
files: | | |
*.deb |