Skip to content

Merge branch 'c++20-module' #321

Merge branch 'c++20-module'

Merge branch 'c++20-module' #321

name: premake4-ubuntu-codeblocks
on:
workflow_dispatch:
push:
paths:
- 'projects/project-*/**'
- 'codeblocks/**'
- '.github/workflows/premake4-ubuntu-codeblocks.yml'
- '!**/*.md'
- '!projects/**/unsupported_by_*'
- '!**/premake5.lua'
- 'projects/**/unsupported_by_codeblocks'
- 'projects/**/unsupported_by_premake4_codeblocks'
pull_request:
paths:
- 'projects/project-*/**'
- 'codeblocks/**'
- '.github/workflows/premake4-ubuntu-codeblocks.yml'
- '!**/*.md'
- '!projects/**/unsupported_by_*'
- '!**/premake5.lua'
- 'projects/**/unsupported_by_codeblocks'
- 'projects/**/unsupported_by_premake4_codeblocks'
jobs:
linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: apt-get update
run: sudo apt-get update -y
- name: apt-get install premake4
run: sudo apt-get install -y premake4
- name: apt-get install -y codeblocks
run: sudo apt-get install -y codeblocks
- name: codeblocks's default configuration
run: |
mkdir -p ~/.config/codeblocks
cp codeblocks/default.conf ~/.config/codeblocks/
- name: test projects default(gcc)
timeout-minutes: 5 # tends to not stop properly in case of failure
run: | # fake X-server as codeblocks requires displays :/
xvfb-run -a python3 ./test_projects.py premake4 projects codeblocks
- name: test projects gcc
timeout-minutes: 5 # tends to not stop properly in case of failure
run: | # fake X-server as codeblocks requires displays :/
xvfb-run -a python3 ./test_projects.py premake4 projects codeblocks --cc=gcc
- name: test projects clang
timeout-minutes: 5 # tends to not stop properly in case of failure
run: | # fake X-server as codeblocks requires displays :/
xvfb-run -a python3 ./test_projects.py premake4 projects codeblocks --cc=clang