Skip to content

Update Makefile to fix file copying issue #217

Update Makefile to fix file copying issue

Update Makefile to fix file copying issue #217

Workflow file for this run

name: Fedora
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
env:
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules
jobs:
build:
runs-on: ubuntu-latest
container: fedora:latest
steps:
- name: install_dependencies
run: |
dnf install -y cmake gcc-c++ make spdlog-devel git cxxopts-devel json-devel
- uses: actions/checkout@v4
with:
fetch-tags: "true"
fetch-depth: 0
- uses: actions/cache@v3
with:
path: "**/cpm_modules"
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
- name: git safe
run: |
git config --global --add safe.directory /__w/Filestorm/Filestorm
- name: configure
run: cmake -S . -Bbuild -DCMAKE_BUILD_TYPE=Debug
- name: build
run: cmake --build build -j4
- name: run
run: ./build/filestorm -h
tests:
runs-on: ubuntu-latest
container: fedora:latest
steps:
- name: install_dependencies
run: |
dnf install -y cmake gcc-c++ make spdlog-devel git cxxopts-devel json-devel
- uses: actions/checkout@v4
with:
fetch-tags: "true"
fetch-depth: 0
- uses: actions/cache@v3
with:
path: "**/cpm_modules"
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
- name: git safe
run: |
git config --global --add safe.directory /__w/Filestorm/Filestorm
- name: configure
run: make tests
trigger-copr-build:
needs: [build, tests]
runs-on: ubuntu-latest
if: success()
steps:
- name: Trigger COPR build
run: |
curl -X POST -H 'Content-Type: application/json' ${{ secrets.COPR_WEBHOOK_URL }}
trigger-copr-build-in-libs:
needs: [build, tests]
runs-on: ubuntu-latest
if: success()
steps:
- name: Trigger COPR build
run: |
curl -X POST -H 'Content-Type: application/json' ${{ secrets.COPR_WEBHOOK_URL_BUILDIN }}