Skip to content

Merge pull request #2 from zgornel/cc-kheops-integration #1

Merge pull request #2 from zgornel/cc-kheops-integration

Merge pull request #2 from zgornel/cc-kheops-integration #1

Workflow file for this run

name: Kheops-compiled PUSH run
env:
REPOSITORY_DIR: "./${{ github.event.repository.name }}" # inside runner
WORKSPACE_DIR: "/workspace" # inside Kheops-compiled container
PROJECT_DIR: "/workspace/src" # inside Kheops-compiled container
CONFIG_PATH: "/workspace/.kheops/input-configuration.json"
INPUT_PARSER: julia
LOG_LEVEL: error
on:
push:
branches:
- master
tags: '*'
jobs:
build:
name: Kheops-compiled Docker ${{ github.event_name }}
#runs-on: [self-hosted]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
arch:
- x64
steps:
- name: Checkout current project repository
uses: actions/checkout@v3
with:
path: ${{ env.REPOSITORY_DIR }}
- id: pull_docker_image
name: Pull Kheops-compiled container image
run: |
docker pull ghcr.io/oxoaresearch/kheops-compiled:latest
- id: run_docker_image
name: Run Kheops-compiled
run: |
docker run --volume=${{ env.REPOSITORY_DIR }}:${{ env.WORKSPACE_DIR }} \
ghcr.io/oxoaresearch/kheops-compiled:latest kheopscli/bin/kheopscli \
--project-dir ${{ env.PROJECT_DIR }} \
--config-path ${{ env.CONFIG_PATH }} \
--input-parser ${{ env.INPUT_PARSER }} \
--output-type text \
--log-level ${{ env.LOG_LEVEL }}