Skip to content

Update Cargo.toml

Update Cargo.toml #28

Workflow file for this run

name: Build
on:
push:
branches: [build, main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-22.04-arm
steps:
- uses: actions/checkout@v4
- name: Configure sccache-cache
run: |
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Prepare
run: |
sudo apt install -y cmake libuv1-dev liblz4-dev liblzma-dev libdouble-conversion-dev libdwarf-dev libunwind-dev
sudo apt install -y libaio-dev libgflags-dev libgoogle-glog-dev libgtest-dev libgmock-dev clang-format-14 clang-14 clang-tidy-14 lld-14
sudo apt install -y libgoogle-perftools-dev google-perftools libssl-dev gcc-12 g++-12 libboost-all-dev meson rustc cargo
ls -all /usr/lib/llvm-14/lib/clang
ls -all /usr/lib/llvm-14/lib/clang/14.0.0/lib/linux/
wget https://github.com/apple/foundationdb/releases/download/7.3.59/foundationdb-clients_7.3.59-1_aarch64.deb && sudo dpkg -i foundationdb-clients_7.3.59-1_aarch64.deb
wget https://github.com/apple/foundationdb/releases/download/7.3.59/foundationdb-server_7.3.59-1_aarch64.deb && sudo dpkg -i foundationdb-server_7.3.59-1_aarch64.deb
git clone https://github.com/libfuse/libfuse.git libfuse -b fuse-3.16.2 --depth 1 && mkdir libfuse/build && cd libfuse/build && meson setup .. && ninja && sudo ninja install && cd ../.. && rm -rf libfuse
ls -all /usr/local/lib/
git submodule update --init --recursive
./patches/apply.sh
- name: Build
run: |
cargo build --release
cmake -S . -B build -DCMAKE_CXX_COMPILER=clang++-14 -DCMAKE_C_COMPILER=clang-14 -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
cmake --build build -j 1
- uses: actions/upload-artifact@v4
with:
path: |
build/*
name: 3fs-x86-64
compression-level: 9