Skip to content

Commit 8c7f7bd

Browse files
committed
fix workflow
1 parent 5fcba6b commit 8c7f7bd

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/build.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ on:
88
- '.github/workflows/**'
99
jobs:
1010
build-repo:
11-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-24.04
1212
env:
1313
LAZYFS_TEST_MOUNT_DIR: "/tmp/lfs.mnt/"
1414
LAZYFS_TEST_ROOT_DIR: "/tmp/lfs.root/"
1515
steps:
1616
- name: Check out repository code
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v6
1818

1919
- name: Set up cache
20-
uses: actions/cache@v4
20+
uses: actions/cache@v5
2121
with:
2222
path: ~/build
2323
key: build-lazyfs

tests/lfscheck/CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ file(GLOB SOURCES "src/*.cpp")
3434
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
3535
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
3636
find_package(Threads REQUIRED)
37-
38-
add_executable(lfscheck ${SOURCES})
39-
40-
target_link_libraries(lfscheck spdlog argparse Threads::Threads)
37+
foreach(src ${SOURCES})
38+
get_filename_component(target ${src} NAME_WE)
39+
add_executable(${target} ${src})
40+
target_link_libraries(${target} PRIVATE spdlog argparse Threads::Threads)
41+
endforeach()

0 commit comments

Comments
 (0)