Skip to content

Bump actions/checkout from 5 to 6 in the github-actions group #198

Bump actions/checkout from 5 to 6 in the github-actions group

Bump actions/checkout from 5 to 6 in the github-actions group #198

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:
- uses: Jarod42/install-premake5@v6
- 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@v6
with:
submodules: recursive
# - name: Build standalone mstch
# run: |
# mkdir 3rd/mstch/build
# cd 3rd/mstch/build
# cmake .. && make
# sudo make install
- name: premake gmake
run: premake5 --llvm-root="${{steps.LLVM.outputs.LLVM_ROOT}}" gmake
- name: make config=release
run: |
cd project/gmake && make config=release verbose=1
cd ../../bin/gmake/Release
./ccccc_test
./ccccc --version
./ccccc --help
# Create compile_commands.json
- name: checkout premake-export-compile-commands
uses: actions/checkout@v6
with:
repository: Jarod42/premake-export-compile-commands
path: 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 export-compile-commands
./bin/gmake/Release/ccccc --template-file=template/ccccc_html/template.tpl --exclude-directory=3rd project/export-compile-commands/release/compile_commands.json > index.html
- name: Upload index.html
uses: actions/upload-artifact@v5
with:
name: ccccc.html
path: |
index.html
template/html/ccccc.js
template/html/ccccc.css