Skip to content

Commit

Permalink
fix: correct bin folder
Browse files Browse the repository at this point in the history
  • Loading branch information
giusbianco committed Jan 25, 2024
1 parent 4a324e8 commit 248eafb
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ jobs:
- name: Build Rust project
run: |
cd libfakedevice
cargo build --release --target-dir=../binaries/libfakedevice-rust/
cargo build --release
- 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/release/**
./binaries/fake-firmware-cpp
./binaries/fake-firmware-c
./binaries/fake-firmware
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 4 additions & 4 deletions libfakedevice-c/autorun.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash

# Create evetually the folder to contain the build
mkdir -p ../binaries/libfakedevice-c
# Create evetually the folder to contain the binary
mkdir -p ../binaries

# 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/
# Copy the produced binary to the binary folder
cp build/fake-firmware-c ../binaries
2 changes: 1 addition & 1 deletion libfakedevice-c/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ openal_dep = dependency('openal', fallback: ['openal'])


fake_firmware = executable (
'libfakedevice_c',
'fake-firmware-c',
sources,
dependencies: [libcurl_dep, openal_dep],
install: true
Expand Down
8 changes: 4 additions & 4 deletions libfakedevice-cpp/autorun.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash

# Create evetually the folder to contain the build
mkdir -p ../binaries/libfakedevice-cpp
# Create evetually the folder to contain the binary
mkdir -p ../binaries

# 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/
# Copy the produced binary to the binary folder
cp build/fake-firmware-cpp ../binaries
2 changes: 1 addition & 1 deletion libfakedevice-cpp/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ rtaudio_dep = dependency('rtaudio', fallback: ['rtaudio'])

# Declaration of executable and dependencies.
fake_firmware = executable (
'libfakedevice_cpp',
'fake-firmware-cpp',
sources,
include_directories: inc_dirs,
dependencies: [cpr_dep, rtaudio_dep],
Expand Down
11 changes: 11 additions & 0 deletions libfakedevice/autorun.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

# Create evetually the folder to contain the binary
mkdir -p ../binaries

# Configure and compile the project with cargo
echo "Project configuration and compilation..."
cargo build --release

# Copy the produced binary to the binary folder
cp target/release/fake-firmware ../binaries

0 comments on commit 248eafb

Please sign in to comment.