Skip to content

Change unsigned int to std::size_t. #120

Change unsigned int to std::size_t.

Change unsigned int to std::size_t. #120

Workflow file for this run

name: Ubuntu
on:
workflow_dispatch:
push:
paths:
- 'src/**'
- 'test/**'
- '.github/workflows/ubuntu.yml'
- premake/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: gcc version
run: |
g++ --version
- name: aptget libunittest++
run: sudo apt-get install libunittest++
- 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}}
- name: checkout ctemplate
uses: actions/checkout@v4
with:
repository: olafvdspek/ctemplate
ref: ctemplate-2.4
- name: build ctemplate
run: |
./autogen.sh && ./configure
make
sudo make install
rm -Rf *
- uses: actions/checkout@v4
- 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 gmake
run: ./premake5 --file="premake/premake5.lua" --llvm-root="${{steps.LLVM.outputs.LLVM_ROOT}}" gmake
- name: make config=releasewithdll
run: |
cd project/gmake && make config=releasewithdll verbose=1
cd ../../bin/gmake/ReleaseWithDLL && ./ccccc_test
#LD_LIBRARY_PATH=/usr/local/lib ./ccccc --help
- name: make config=release
run: |
cd project/gmake && make config=release verbose=1
cd ../../bin/gmake/Release && ./ccccc_test
#LD_LIBRARY_PATH=/usr/local/lib ./ccccc --help