Skip to content

[cleanup] Remove premake/buildall.bat and (old) premake/premake5.exe #166

[cleanup] Remove premake/buildall.bat and (old) premake/premake5.exe

[cleanup] Remove premake/buildall.bat and (old) premake/premake5.exe #166

Workflow file for this run

name: Ubuntu
on:
workflow_dispatch:
push:
paths:
- 'src/**'
- 'test/**'
- '.github/workflows/ubuntu.yml'
- premake5.lua
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: gcc version
run: |
g++ --version
- name: aptget llvm
id: LLVM
run: |
sudo apt-get install clang-14 libclang-14-dev llvm-14-dev llvm-14-runtime llvm-14
echo "LLVM_ROOT=/usr/lib/llvm-14" >> $GITHUB_OUTPUT
- name: DEBUG llvm
run: |
echo "LLVM_ROOT:" $LLVM_ROOT
echo "================ ls $LLVM_ROOT/lib" && ls $LLVM_ROOT/lib
echo "================ ls $LLVM_ROOT/bin" && ls $LLVM_ROOT/bin
echo "================ llvm-config --cppflags" && $LLVM_ROOT/bin/llvm-config --cppflags
echo "================ llvm-config --ldflags" && $LLVM_ROOT/bin/llvm-config --system-libs --ldflags --libs all support
env:
LLVM_ROOT: ${{steps.LLVM.outputs.LLVM_ROOT}}
- uses: actions/checkout@v4
with:
submodules: recursive
# - name: Build standalone mstch
# run: |
# mkdir 3rd/mstch/build
# cd 3rd/mstch/build
# cmake .. && make
# sudo make install
- name: checkout premake5
uses: actions/checkout@v4
with:
repository: premake/premake-core
path: premake-build
- name: Build premake5
run: |
cd premake-build
make -f Bootstrap.mak linux CONFIG=release
cp bin/release/premake5 ../
cd ..
rm -Rf premake-build
- name: premake gmake2
run: ./premake5 --llvm-root="${{steps.LLVM.outputs.LLVM_ROOT}}" gmake2
- name: make config=release
run: |
cd project/gmake2 && make config=release verbose=1
cd ../../bin/gmake2/Release
./ccccc_test
./ccccc --version
./ccccc --help
# Create compile_commands.json
- name: checkout premake-export-compile-commands
uses: actions/checkout@v4
with:
repository: Jarod42/premake-export-compile-commands
path: premake/premake-export-compile-commands
ref: Improvements
- name: run ccccc on itself
run: |
echo "require 'premake-export-compile-commands/export-compile-commands'" >> premake-system.lua
./premake5 --llvm-root="${{steps.LLVM.outputs.LLVM_ROOT}}" --expand-llvm-config --no-3rd export-compile-commands
./bin/gmake2/Release/ccccc project/export-compile-commands/release/compile_commands.json > index.html
- name: Upload index.html
uses: actions/upload-artifact@v4
with:
name: ccccc.html
path: |
index.html
template/html/ccccc.js
template/html/ccccc.css