-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
64d1f41
commit ed16872
Showing
2 changed files
with
50 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
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@v4 | ||
with: | ||
fetch-depth: 150 | ||
fetch-tags: true | ||
- run: "git config --system --add safe.directory $GITHUB_WORKSPACE" | ||
- name: configure | ||
run: "cmake -G Ninja -S $GITHUB_WORKSPACE -B $BUILDDIR" | ||
- name: generate codemeta.json | ||
run: "cmake --build $BUILDDIR --target codemeta" | ||
- name: print result | ||
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" |
This file was deleted.
Oops, something went wrong.