Add project wholearchive #380
This file contains hidden or 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: premake4-ubuntu-codeblocks | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - 'projects/**' | |
| - '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/**' | |
| - 'codeblocks/**' | |
| - '.github/workflows/premake4-ubuntu-codeblocks.yml' | |
| - '!**/*.md' | |
| - '!projects/**/unsupported_by_*' | |
| - '!**/premake5.lua' | |
| - 'projects/**/unsupported_by_codeblocks' | |
| - 'projects/**/unsupported_by_premake4_codeblocks' | |
| jobs: | |
| linux: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| runner: ['ubuntu-latest', 'ubuntu-24.04-arm'] | |
| runs-on: ${{matrix.runner}} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - 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 |