diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3f10c51..178ace3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,24 +31,15 @@ jobs: - name: Build Rust project run: | cd libfakedevice - cargo build - - - name: Package artifacts - run: | - mkdir -p binaries/libfakedevice_cpp - mkdir -p binaries/libfakedevice_c - mkdir -p binaries/libfakedevice_rust - cp -r ./libfakedevice-cpp/build/** ./binaries/libfakedevice_cpp - cp -r ./libfakedevice-c/build/** ./binaries/libfakedevice_c - cp -r ./libfakedevice/target/debug/** ./binaries/libfakedevice_rust + cargo build --release --target-dir=../binaries/libfakedevice-rust/ - name: Create a release uses: softprops/action-gh-release@v1 with: tag_name: v1.0.0 files: | - ./binaries/libfakedevice_cpp - ./binaries/libfakedevice_c - ./binaries/libfakedevice_rust + ./binaries/libfakedevice-cpp/* + ./binaries/libfakedevice-c/* + ./binaries/libfakedevice-rust/* env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/libfakedevice-c/autorun.sh b/libfakedevice-c/autorun.sh index 6aa7e76..d547b66 100755 --- a/libfakedevice-c/autorun.sh +++ b/libfakedevice-c/autorun.sh @@ -1,6 +1,12 @@ #!/bin/bash +# Create evetually the folder to contain the build +mkdir -p ../binaries/libfakedevice-c + # Configure and compile the project with Meson and Ninja echo "Project configuration and compilation..." env CC=clang meson setup build ninja -C build + +# Copy the produced build to the binary folder +cp -r build/** ../binaries/libfakedevice-c/ diff --git a/libfakedevice-cpp/autorun.sh b/libfakedevice-cpp/autorun.sh index 1747737..f27c248 100755 --- a/libfakedevice-cpp/autorun.sh +++ b/libfakedevice-cpp/autorun.sh @@ -1,6 +1,12 @@ #!/bin/bash +# Create evetually the folder to contain the build +mkdir -p ../binaries/libfakedevice-cpp + # Configure and compile the project with Meson and Ninja echo "Project configuration and compilation..." env CXX=clang++ meson setup build ninja -C build + +# Copy the produced build to the binary folder +cp -r build/** ../binaries/libfakedevice-cpp/