Skip to content

Add project-rc to test resource compilation #373

Add project-rc to test resource compilation

Add project-rc to test resource compilation #373

name: premake5-ubuntu-ninja
on:
workflow_dispatch:
push:
paths:
- 'projects/project-*/**'
- '.github/workflows/premake5-ubuntu-ninja.yml'
- '.github/actions/install-premake5/action.yml'
- '!**/*.md'
- '!projects/**/unsupported_by_*'
- '!**/premake4.lua'
- 'projects/**/unsupported_by_ninja'
- 'projects/**/unsupported_by_premake5_ninja'
- 'submodules/premake-ninja'
pull_request:
paths:
- 'projects/project-*/**'
- '.github/workflows/premake5-ubuntu-ninja.yml'
- '.github/actions/install-premake5/action.yml'
- '!**/*.md'
- '!projects/**/unsupported_by_*'
- '!**/premake4.lua'
- 'projects/**/unsupported_by_ninja'
- 'projects/**/unsupported_by_premake5_ninja'
- 'submodules/premake-ninja'
jobs:
linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: install premake5
uses: ./.github/actions/install-premake5
with:
repository: premake/premake-core
- name: apt-get update
run: sudo apt-get update -y
- name: apt-get install ninja-build
run: |
sudo apt-get install -y ninja-build
- name: ninja --version
run: ninja --version
- name: add premake ninja module
run: |
echo "require 'submodules/premake-ninja/ninja'" >> premake-system.lua
- name: test projects default(gcc)
run: python3 ./test_projects.py premake5 projects ninja --scripts=`pwd`
- name: test projects gcc
run: python3 ./test_projects.py premake5 projects ninja --scripts=`pwd` --cc=gcc
- name: test projects clang
run: python3 ./test_projects.py premake5 projects ninja --scripts=`pwd` --cc=clang