Skip to content

diagnose missing file #13

diagnose missing file

diagnose missing file #13

Workflow file for this run

on: [push, pull_request]
name: FDSPP
jobs:
build-rpm:
name: Build RPM Fedora
runs-on: ubuntu-latest
strategy:
matrix:
container:
- "rockylinux:9"
- "fedora:40"
container: ${{ matrix.container }}
steps:
- uses: actions/checkout@v4
- name: General update
run: dnf update -y --refresh
- name: Install basic build prerequisites
run: dnf install -y git gcc g++ rpmdevtools make
- name: Enable EPEL
if: matrix.container == 'rockylinux:9'
run: |
dnf install -y 'dnf-command(config-manager)'
dnf config-manager --set-enabled crb
dnf install -y epel-release
- name: Install rpmautospec-rpm-macros
if: matrix.container == 'rockylinux:9'
run: dnf install -y rpmautospec-rpm-macros
- name: Install lib prerequisites
run: dnf install -y rust cargo cargo-rpm-macros rust-clap+cargo-devel
rust-serde+derive-devel rust-serde_json+default-devel
rust-tempfile+default-devel rust-serde+default-devel
rust-clap+default-devel rust-utf-8+default-devel rust-clap_builder-devel
- name: Build namelist RPMs
run: |
cd rust-namelist
dnf reinstall -y rust-clap_builder-devel
rpm -ql rust-clap_builder-devel
ls /usr/share/cargo/registry/clap_builder-4.5.23
rpm -V rust-clap_builder-devel
bash ./buildrpm.sh
dnf install -y rpmbuild/RPMS/noarch/rust-namelist*.rpm
- name: Build RPM
run: |
cd fdspp
bash ./buildrpm.sh
ls ../dist/*.rpm
- id: setContainerSafeName
run: |
export test_version=$(echo ${{ matrix.container }} | sed 's/:/\-/g')
echo "containerSafe=$test_version" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@v4
with:
name: fdspp-RPMs-${{ steps.setContainerSafeName.outputs.containerSafe }}
path: |
dist/*.rpm
merge:
runs-on: ubuntu-latest
needs: build-rpm
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: fdspp-RPMs
pattern: fdspp-RPMs-*