Skip to content

Commit ffa1edb

Browse files
committed
test commit
1 parent 5a849ed commit ffa1edb

File tree

2 files changed

+36
-6
lines changed

2 files changed

+36
-6
lines changed

.github/workflows/static-analysis.yml

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,21 @@ jobs:
1414
submodules: true
1515
fetch-depth: 0
1616

17-
- name: Setup anew (or from cache) vcpkg
18-
uses: lukka/run-vcpkg@v11
17+
- name: Install nfs-ganesha v4.3 from Ubuntu repository
18+
run: |
19+
sudo apt update
20+
sudo apt install -y nfs-common nfs-ganesha nfs-ganesha-vfs
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v4
24+
with:
25+
python-version: "3.x"
1926

20-
- name: Install packages
27+
- name: Install SaunaFS dependencies, setup environment and build
2128
run: |
22-
sudo ./tests/install-packages.sh
29+
sudo mkdir /mnt/hd{b,c,d}
30+
cd $GITHUB_WORKSPACE/tests
31+
sudo ./setup_machine.sh setup /mnt/hdb /mnt/hdc /mnt/hdd
2332
2433
- name: Fetch base branch
2534
run: |
@@ -29,14 +38,33 @@ jobs:
2938
- name: Install clang-tidy
3039
run: |
3140
sudo apt-get update
32-
sudo apt-get install -y clang-tidy python3-yaml
41+
sudo apt-get install -y clang-tidy
42+
pip3 install PyYAML
43+
44+
- name: Install LLVM and Clang
45+
run: |
46+
sudo $GITHUB_WORKSPACE/tests/llvm.sh
47+
48+
- name: Cache vcpkg downloads
49+
uses: actions/cache@v4
50+
with:
51+
path: |
52+
~/.cache/vcpkg
53+
key: ${{ runner.os }}-vcpkg-${{ hashFiles('vcpkg.json') }}
54+
restore-keys: |
55+
${{ runner.os }}-vcpkg-
56+
57+
- name: Setup vcpkg and install dependencies
58+
run: |
59+
$GITHUB_WORKSPACE/utils/vcpkg_setup.sh
60+
vcpkg install --triplet x64-linux
3361
3462
- name: Prepare compile_commands.json
3563
run: |
3664
mkdir -p build
3765
cmake -B build \
66+
-DCMAKE_TOOLCHAIN_FILE="${HOME}/vcpkg/scripts/buildsystems/vcpkg.cmake" \
3867
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
39-
-DCMAKE_TOOLCHAIN_FILE="${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" \
4068
-DENABLE_CLIENT_LIB=ON \
4169
-DENABLE_DOCS=ON \
4270
-DENABLE_NFS_GANESHA=ON \

src/main/main.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,8 @@ int main(int argc,char **argv) {
826826
std::string cfgfile = default_cfgfile;
827827
std::string pidfile;
828828

829+
printf("Hello world!");
830+
829831
prepareEnvironment();
830832
mycrc32_init();
831833

0 commit comments

Comments
 (0)