Skip to content

Commit

Permalink
Dynamic Builds (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
tornupnegatives authored Oct 15, 2023
1 parent 4b54d54 commit 2044963
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 72 deletions.
37 changes: 37 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
{
"name": "TMS Express",

// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/base:jammy",

// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers-contrib/features/wget-apt-get:1": {}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "sudo apt update && sudo apt install cmake wget libsndfile1-dev libsamplerate0-dev qt6-base-dev qt6-multimedia-dev libgl1-mesa-dev -y",

// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"ms-vscode.cpptools",
"ms-vscode.cpptools-extension-pack",
"twxs.cmake",
"ms-vscode.cmake-tools",
"streetsidesoftware.code-spell-checker",
"mine.cpplint",
"github.vscode-github-actions"
]
}
}

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
71 changes: 0 additions & 71 deletions .github/workflows/build.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/release-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build & Release (macOS)
on:
push:
tags:
- "v*.*.*"

jobs:
build:
runs-on: macos-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Install Dependencies
run: brew install cmake libsndfile libsamplerate pkg-config qt

- name: Configure Build
run: cmake -B build -DCMAKE_BUILD_TYPE=Release -DTMSEXPRESS_BUILD_TESTS=OFF

- name: Build
run: cmake --build ${{github.workspace}}/build --config Release

- name: Package Build Artifact
run: zip -jr ${{github.workspace}}/build-macos.zip ${{github.workspace}}/build/tmsexpress

- name: Attach to Release
uses: softprops/action-gh-release@v1
with:
files: |
${{github.workspace}}/build-macos.zip
38 changes: 38 additions & 0 deletions .github/workflows/release-ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build & Release (Ubuntu)
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Install Dependencies
run: sudo apt install cmake wget libsndfile1-dev libsamplerate0-dev qt6-base-dev qt6-multimedia-dev libgl1-mesa-dev
- name: Configure Build
run: cmake -B build -DCMAKE_BUILD_TYPE=Release -DTMSEXPRESS_BUILD_TESTS=OFF

- name: Build
run: cmake --build ${{github.workspace}}/build --config Release

- name: Install cqtdeployer
run: |
wget https://github.com/QuasarApp/CQtDeployer/releases/download/v1.6.2320/CQtDeployer_1.6.2320.097d82b_Linux_x86_64.deb
sudo dpkg -i CQtDeployer_1.6.2320.097d82b_Linux_x86_64.deb
- name: Deploy Project
run: cqtdeployer -targetDir ${{github.workspace}}/tmsexpress -bin ${{github.workspace}}/build/tmsexpress -extraLibs libb2.so.1

- name: Package Build Artifact
run: cd ${{github.workspace}} && zip -r build-linux.zip tmsexpress

- name: Attach to Release
uses: softprops/action-gh-release@v1
with:
files: |
${{github.workspace}}/build-linux.zip
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ $ brew tap tornupnegatives/tmsexpress && brew install tms-express
### Dependencies
```shell
# Ubuntu
$ sudo apt install cmake libsndfile1-dev libsamplerate0-dev qt6-base-dev qt6-multimedia-dev
$ sudo apt install cmake libsndfile1-dev libsamplerate0-dev qt6-base-dev qt6-multimedia-dev libgl1-mesa-dev

# macOS
$ brew install cmake libsamplerate libsndfile pkg-config qt
Expand Down

0 comments on commit 2044963

Please sign in to comment.