@@ -1,24 +0,0 @@ | |||||
name: CI | |||||
# Controls when the action will run. Triggers the workflow on push or pull | |||||
# request events but only for the main branch | |||||
on: | |||||
push: | |||||
branches: | |||||
- master | |||||
pull_request: | |||||
branches: [ master ] | |||||
schedule: | |||||
- cron: '0 0 15 * *' | |||||
jobs: | |||||
ci: | |||||
runs-on: ubuntu-20.04 | |||||
steps: | |||||
- uses: actions/checkout@v2 | |||||
- name: Build and Test | |||||
run: npx --package mini-cross@0.15.2 mc --no-tty ubuntu:22.04 .mc/rebuild.sh | |||||
@@ -1,21 +0,0 @@ | |||||
#!/bin/bash | |||||
set -e | |||||
# @see https://stackoverflow.com/a/1482133 | |||||
DIRECTORY_OF_SCRIPT=`dirname "$(readlink -f "$0")"` | |||||
SOURCE_DIRECTORY="${DIRECTORY_OF_SCRIPT}/.." | |||||
BUILD_DIRECTORY="${DIRECTORY_OF_SCRIPT}/../build" | |||||
if [ -d "${BUILD_DIRECTORY}" ]; then | |||||
rm -rf "${BUILD_DIRECTORY}" | |||||
fi | |||||
mkdir "${BUILD_DIRECTORY}" | |||||
(cd "${BUILD_DIRECTORY}" && cmake -DCMAKE_BUILD_TYPE=Release ..) | |||||
make --directory "${BUILD_DIRECTORY}" --silent | |||||
make --directory "${BUILD_DIRECTORY}" --silent test | |||||
@@ -1,8 +0,0 @@ | |||||
--- | |||||
base: ubuntu:22.04 | |||||
install: | |||||
- cmake | |||||
- g++ | |||||
- gcc | |||||
- valgrind | |||||
--- |