| 1 |
name: RPKG |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: [master] |
| 6 |
tags: ["v*.*.*"] |
| 7 |
pull_request: |
| 8 |
branches: [master] |
| 9 |
workflow_dispatch: |
| 10 |
|
| 11 |
jobs: |
| 12 |
build: |
| 13 |
runs-on: ubuntu-latest |
| 14 |
|
| 15 |
container: |
| 16 |
image: fedora:37 |
| 17 |
steps: |
| 18 |
- name: Install dependencies |
| 19 |
run: sudo dnf install rpkg git dnf-plugins-core -y |
| 20 |
|
| 21 |
- uses: actions/checkout@v6 |
| 22 |
with: |
| 23 |
fetch-depth: 0 |
| 24 |
- name: Run RPKG |
| 25 |
run: | |
| 26 |
git config --global --add safe.directory "*" |
| 27 |
chown -hR root "$GITHUB_WORKSPACE" |
| 28 |
cd "$GITHUB_WORKSPACE" |
| 29 |
rpkg spec --outdir ./ |
| 30 |
sudo dnf builddep -y ismrmrd.spec |
| 31 |
rm ismrmrd.spec |
| 32 |
rpkg local |