Skip to content

Commit

Permalink
Change action package url in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwellmattryan committed Nov 15, 2024
1 parent 5b0282e commit ddbd30f
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 56 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ jobs:
with:
submodules: true

- name: Precompile Rotor
- name: Precompile
working-directory: ${{ runner.workspace }}/rotor
shell: bash
run: ./scripts/precompile.sh

- name: Configure Rotor
- name: Configure
working-directory: ${{ runner.workspace }}/rotor
run: cmake -B bin . -DCMAKE_BUILD_TYPE=${{ inputs.build_type }}

- name: Build Rotor
- name: Build
working-directory: ${{ runner.workspace }}/rotor
run: cmake --build bin --config ${{ inputs.build_type }} --target ${{ env.PLUGIN_NAME }}_All --parallel 8

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ jobs:
uses: actions/download-artifact@v4

- name: Draft Release
uses: softprops/actions-gh-release@v2
uses: softprops/action-gh-release@v2
with:
prerelease: ${{ inputs.stage != 'production' }}
files: |
Expand Down
42 changes: 13 additions & 29 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ BUILD_TYPE=Debug
COMPANY_NAME="Black Box Audio"
PLUGIN_NAME=Rotor

JUCE_CODE_COMMIT=2f980209cc4091a4490bb1bafc5d530f16834e58

for i in "$@"; do
case $i in
-c|--copy)
Expand Down Expand Up @@ -42,36 +40,22 @@ done

if [ ${REMOVE_PREV_BUILD} = true ]; then
rm -rf ./bin
rm -rf ./juce/bin
echo -e "[Success] Removed previous build's folders!\n"
fi

if [ ! -d "./juce" ]; then
git clone https://github.com/juce-framework/JUCE.git
mv JUCE/ juce/

cd ./juce

git checkout "$JUCE_CODE_COMMIT"

cd ../

echo -e "\n[Success] Cloned JUCE repository\n"
fi

if [ ! -d "./juce/build" ]; then
cd ./juce

echo -e "Configuring JUCE...\n"
cmake -B bin . -DCMAKE_BUILD_TYPE="$BUILD_TYPE"
echo -e "\n[Success] Configured JUCE build!\n"

echo -e "Building JUCE...\n"
cmake --build bin --parallel 8
echo -e "\n[Success] Built JUCE libraries and targets!\n"

cd ../
fi
#if [ ! -d "./vendor/juce/build" ]; then
# cd ./vendor/juce
#
# echo -e "Configuring JUCE...\n"
# cmake -B bin . -DCMAKE_BUILD_TYPE="$BUILD_TYPE"
# echo -e "\n[Success] Configured JUCE build!\n"
#
# echo -e "Building JUCE...\n"
# cmake --build bin --parallel 8
# echo -e "\n[Success] Built JUCE libraries and targets!\n"
#
# cd ../../
#fi

if [ ${PRECOMPILE_STEP} = true ]; then
scripts/precompile.sh -b=${BUILD_TYPE}
Expand Down
47 changes: 24 additions & 23 deletions src/RotorData.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,37 @@

#pragma once

namespace RotorData {
extern const char* montserratlight_ttf;
const int montserratlight_ttfSize = 242068;
namespace RotorData
{
extern const char* montserratlight_ttf;
const int montserratlight_ttfSize = 242068;

extern const char* montserrat_ttf;
const int montserrat_ttfSize = 245708;
extern const char* montserrat_ttf;
const int montserrat_ttfSize = 245708;

extern const char* louisgeorgecafelight_ttf;
const int louisgeorgecafelight_ttfSize = 32552;
extern const char* louisgeorgecafelight_ttf;
const int louisgeorgecafelight_ttfSize = 32552;

extern const char* louisgeorgecafe_ttf;
const int louisgeorgecafe_ttfSize = 32020;
extern const char* louisgeorgecafe_ttf;
const int louisgeorgecafe_ttfSize = 32020;

extern const char* background_png;
const int background_pngSize = 112304;
extern const char* background_png;
const int background_pngSize = 112304;

// Number of elements in the namedResourceList and originalFileNames arrays.
const int namedResourceListSize = 5;
// Number of elements in the namedResourceList and originalFileNames arrays.
const int namedResourceListSize = 5;

// Points to the start of a list of resource names.
extern const char* namedResourceList[];
// Points to the start of a list of resource names.
extern const char* namedResourceList[];

// Points to the start of a list of resource filenames.
extern const char* originalFilenames[];
// Points to the start of a list of resource filenames.
extern const char* originalFilenames[];

// If you provide the name of one of the binary resource variables above, this function will
// return the corresponding data and its size (or a null pointer if the name isn't found).
const char* getNamedResource(const char* resourceNameUTF8, int& dataSizeInBytes);
// If you provide the name of one of the binary resource variables above, this function will
// return the corresponding data and its size (or a null pointer if the name isn't found).
const char* getNamedResource (const char* resourceNameUTF8, int& dataSizeInBytes);

// If you provide the name of one of the binary resource variables above, this function will
// return the corresponding original, non-mangled filename (or a null pointer if the name isn't found).
const char* getNamedResourceOriginalFilename(const char* resourceNameUTF8);
// If you provide the name of one of the binary resource variables above, this function will
// return the corresponding original, non-mangled filename (or a null pointer if the name isn't found).
const char* getNamedResourceOriginalFilename (const char* resourceNameUTF8);
}

0 comments on commit ddbd30f

Please sign in to comment.