Skip to content

Commit

Permalink
Create build-linux.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tornupnegatives authored Jul 25, 2023
1 parent 350cf5f commit 310a4f8
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: build-linux

on:
push:
branches: [ "build_scripts" ]

env:
BUILD_TYPE: Release

jobs:
build:
runs-on: ubuntu-latest

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

- name: Install system modules
run: |
sudo apt update
sudo apt install -y autoconf autoconf-archive bison build-essential cmake libtool ninja-build pkg-config unzip zip \
libgl1-mesa-dev libglu1-mesa-dev mesa-common-dev libxi-dev freeglut3-dev \
libxext-dev libxfixes-dev libxrender-dev \
libxcb1-dev libx11-xcb-dev libxcb-glx0-dev libxcb-util0-dev \
libxkbcommon-dev libxkbcommon-x11-dev libxcb-keysyms1-dev \
libxcb-image0-dev libxcb-shm0-dev libxcb-icccm4-dev libxcb-sync-dev \
libxcb-xfixes0-dev libxcb-shape0-dev libxcb-randr0-dev \
libxcb-render-util0-dev libxcb-xinerama0-dev libxcb-xkb-dev libxcb-xinput-dev \
libxcb-cursor-dev
- name: Install project dependencies
run: vcpkg install libsndfile libsamplerate qtbase qtmultimedia

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake

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

- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}}

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

- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
${{github.workspace}}/build-linux.zip

0 comments on commit 310a4f8

Please sign in to comment.