Skip to content

Commit

Permalink
Merge pull request #9 from xaviershay/rack2-build
Browse files Browse the repository at this point in the history
Fix build scripts for rack2
  • Loading branch information
xaviershay authored Dec 15, 2021
2 parents da703c1 + 2b7ade0 commit 8e82206
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build_linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ LABEL "homepage"="TBD"
LABEL "maintainer"="dewb"

RUN apt-get update
RUN apt-get install -y build-essential cmake curl gcc g++ git make tar unzip zip libgl1-mesa-dev libglu1-mesa-dev jq
RUN apt-get install -y build-essential cmake curl gcc g++ git make tar unzip zip libgl1-mesa-dev libglu1-mesa-dev jq zstd

ADD entrypoint.sh /entrypoint.sh
RUN chmod a+x /entrypoint.sh
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/build_win/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ LABEL "homepage"="TBD"
LABEL "maintainer"="dewb"

RUN apt-get update
RUN apt-get install -y build-essential cmake curl gcc g++ git make tar unzip zip libgl1-mesa-dev libglu1-mesa-dev jq g++-mingw-w64-x86-64
RUN apt-get install -y build-essential cmake curl gcc g++ git make tar unzip zip libgl1-mesa-dev libglu1-mesa-dev jq zstd g++-mingw-w64-x86-64

ADD entrypoint.sh /entrypoint.sh
RUN chmod a+x /entrypoint.sh
Expand Down
5 changes: 0 additions & 5 deletions .github/actions/update_asset/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ GITHUB_UPLOAD_URL=https://uploads.github.com

REPO=${GITHUB_REPOSITORY#"https://github.com/"} # work around url parsing bug in act for local testing

# If the action was triggered on a branch other than master, terminate with neutral status
if [ ${GITHUB_REF} != "refs/heads/master" ] ; then
exit 78
fi

FILENAME=$(basename ${ASSET_PATH})

# Get information about the release
Expand Down
7 changes: 1 addition & 6 deletions .github/actions/update_tag/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,11 @@

# expects TAG and REF environment variables set in workflow

set -eu
set -eux

GITHUB_API_URL=https://api.github.com
REPO=${GITHUB_REPOSITORY#"https://github.com/"} # work around url parsing bug in act for local testing

# If the action was triggered on a different ref than specified, terminate with neutral status
if [ ${GITHUB_REF} != ${REF} ] ; then
exit 78
fi

# Update the tag to point to the ref
curl -i \
--header "Authorization: token ${GITHUB_TOKEN}" \
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,20 @@ jobs:
name: Build Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@main
- name: Build Linux
uses: ./.github/actions/build_linux
env:
RACK_SDK_VERSION: 2.0.3
- name: Tag Head as Latest
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/actions/update_tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REF: refs/heads/master
REF: refs/heads/main
TAG: latest
- name: Upload Linux Release
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/actions/update_asset
env:
ASSET_PATH: dist/vitamin-2.0.1-lin.zip
Expand All @@ -26,18 +28,20 @@ jobs:
name: Build Windows
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@main
- name: Build Windows
uses: ./.github/actions/build_win
env:
RACK_SDK_VERSION: 2.0.3
- name: Tag Head as Latest
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/actions/update_tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REF: refs/heads/master
REF: refs/heads/main
TAG: latest
- name: Upload Windows Release
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/actions/update_asset
env:
ASSET_PATH: dist/vitamin-2.0.1-win.zip
Expand All @@ -48,7 +52,7 @@ jobs:
# name: Build OSX
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@master
# - uses: actions/checkout@main
# - name: Build OSX
# uses: ./.github/actions/build_osx
# env:
Expand All @@ -57,7 +61,7 @@ jobs:
# uses: ./.github/actions/update_tag
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# REF: refs/heads/master
# REF: refs/heads/main
# TAG: latest
# - name: Upload OSX Release
# uses: ./.github/actions/update_asset
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Features two mono lines, two stereo lines, and a single mono-to-stereo line.
The mono-to-stereo line performs a constant power center pan to the outputs
when bypassing, to maintain constant apparent volume.

![Vitamin B Screenshot](https://raw.githubusercontent.com/xaviershay/vcv-modules/master/images/vitamin-b.png)
![Vitamin B Screenshot](https://raw.githubusercontent.com/xaviershay/vcv-modules/main/images/vitamin-b.png)

## Vitamin P (Pan)

Expand All @@ -25,7 +25,7 @@ full range of control either:
* set the knob to left position with a unipolar input 0V to 10V.
* set the knob to middle position with a bipolar input -5V to 5V.

![Vitamin P Screenshot](https://raw.githubusercontent.com/xaviershay/vcv-modules/master/images/vitamin-p.png)
![Vitamin P Screenshot](https://raw.githubusercontent.com/xaviershay/vcv-modules/main/images/vitamin-p.png)

# Development

Expand Down

0 comments on commit 8e82206

Please sign in to comment.