Update CI build workflows

This commit is contained in:
David Allen 2023-01-14 09:08:37 -06:00
parent 072a118c9d
commit ff219bce93
2 changed files with 9 additions and 7 deletions

View file

@ -1,4 +1,4 @@
name: github-ci name: CMake Linux Build
on: on:
workflow_dispatch: workflow_dispatch:
@ -10,7 +10,6 @@ on:
permissions: permissions:
contents: read contents: read
# Needed for the 'trilom/file-changes-action' action
pull-requests: read pull-requests: read
@ -21,6 +20,7 @@ concurrency:
jobs: jobs:
build: build:
runs-on: [self-hosted, linux]
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -32,12 +32,15 @@ jobs:
- name: Build - name: Build
run: run:
echo -e "Building executable and libraries...\n$PWD" echo -e "Building executable and libraries...\n$PWD"
bin/compile.sh ./bin/compile.sh
test:
runs-on: [self-hosted, linux]
- name: Tests - name: Tests
uses: actions/checkout@v3
run: run:
echo "Running unit tests..." echo "Running unit tests..."
bin/gdpm-tests ./bin/gdpm-tests
- name: Package - name: Package
run: run:

View file

@ -10,12 +10,11 @@ stages:
cache: cache:
paths: paths:
- tests - build
before-script: before-script:
- echo "Setting up dependencies..." - echo "Setting up dependencies..."
- git clone $
build-job: build-job: