Skip to content

Commit

Permalink
ci: Generate codemeta.json
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisklein committed Sep 11, 2023
1 parent aa9ed80 commit f5385b4
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 21 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/codemeta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: codemeta

on:
push:
paths:
- codemeta.json
- .github/workflows/codemeta.yaml
tags:
- 'v*'
pull_request:
paths:
- codemeta.json
- .github/workflows/codemeta.yaml

env:
BUILDDIR: build
CODEMETA_ARTIFACT: codemeta.json

jobs:
generate:
runs-on: ubuntu-latest
container:
image: ghcr.io/fairrootgroup/fairmq-dev/fedora-38:latest
steps:
- uses: actions/checkout@v3
- run: git config --system --add safe.directory ${GITHUB_WORKSPACE}
- name: configure
run: cmake -G Ninja -S . -B ${BUILDDIR}
- name: generate codemeta.json
run: cmake --build ${BUILDDIR} --target codemeta
- run: cat ${BUILDDIR}/${CODEMETA_ARTIFACT}
- uses: actions/upload-artifact@v3
with:
name: ${CODEMETA_ARTIFACT}
path: ${BUILDDIR}/${CODEMETA_ARTIFACT}
validate:
needs: generate
runs-on: ubuntu-latest
container:
image: gitlab-registry.in2p3.fr/escape2020/wp3/eossr:v1.0
steps:
- uses: actions/download-artifact@v3
with:
name: ${CODEMETA_ARTIFACT}
- name: validate codemeta
run: eossr-metadata-validator ${CODEMETA_ARTIFACT}
21 changes: 0 additions & 21 deletions .github/workflows/codemeta_validate.yaml

This file was deleted.

0 comments on commit f5385b4

Please sign in to comment.