Skip to content

Commit

Permalink
Update deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
giusbianco committed Jan 25, 2024
1 parent 002377b commit 54e3278
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
6 changes: 6 additions & 0 deletions libfakedevice-c/autorun.sh
Original file line number Diff line number Diff line change
@@ -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/
6 changes: 6 additions & 0 deletions libfakedevice-cpp/autorun.sh
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit 54e3278

Please sign in to comment.