Skip to content

Some minor modifications, and keywords update. #81

Some minor modifications, and keywords update.

Some minor modifications, and keywords update. #81

Workflow file for this run

name: Build
on:
push:
branches:
- master
- development
pull_request:
branches:
- master
- development
release:
types:
- created
jobs:
build-windows:
strategy:
matrix:
os: [[windows-latest,x64-windows]]
buildType: [Release]
runs-on: ${{ matrix.os[0] }}
steps:
- uses: actions/checkout@v2
- name: Setup vcpkg
uses: lukka/run-vcpkg@v4
with:
vcpkgGitCommitId: '11cbb6b57b502d4864fa3c51b36b1ec88527a036'
setupOnly: true
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build-${{ matrix.buildType }}
- name: Checkout submodules
run: |
git submodule update --init -- "CMake"
git submodule update --init --recursive -- "source/wxCharts"
- name: Configure CMake
id: configure
shell: bash
working-directory: ${{runner.workspace}}/build-${{ matrix.buildType }}
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.buildType }} -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/package/Aria -DPROJECTS_UNITY_BUILD=ON -DCMAKE_TOOLCHAIN_FILE=$GITHUB_WORKSPACE/vcpkg/scripts/buildsystems/vcpkg.cmake
- name: Build
if: (steps.configure.conclusion == 'success')
id: build
working-directory: ${{runner.workspace}}/build-${{ matrix.buildType }}
shell: bash
run: cmake --build . --parallel 2 --config ${{ matrix.buildType }}
- name: Prepare success package
if: (github.event_name == 'push') && (steps.build.conclusion == 'success')
id: package
working-directory: ${{runner.workspace}}/build-${{ matrix.buildType }}
shell: bash
run: |
cmake --install . --config ${{ matrix.buildType }}
7z a $GITHUB_WORKSPACE/Aria-${{ matrix.os[1] }}.zip $GITHUB_WORKSPACE/package/Aria/
- name: Clean build folder
if: (steps.build.conclusion == 'success')
working-directory: ${{runner.workspace}}/build-${{ matrix.buildType }}
shell: bash
run: cmake --build . --config ${{ matrix.buildType }} --target clean
- name: Upload success package
if: (github.event_name == 'push') && (steps.package.conclusion == 'success')
uses: actions/upload-artifact@v2
with:
name: Aria-${{ matrix.os[1] }}.zip
path: ${{ github.workspace }}/Aria-${{ matrix.os[1] }}.zip
build-macos:
strategy:
matrix:
os: [[macos-latest,x64-osx]]
buildType: [Release]
runs-on: ${{ matrix.os[0] }}
steps:
- uses: actions/checkout@v2
- name: Setup vcpkg
uses: lukka/run-vcpkg@v4
with:
vcpkgGitCommitId: '11cbb6b57b502d4864fa3c51b36b1ec88527a036'
setupOnly: true
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build-${{ matrix.buildType }}
- name: Checkout submodules
run: |
git submodule update --init -- "CMake"
git submodule update --init --recursive -- "source/wxCharts"
- name: Configure CMake
id: configure
shell: bash
working-directory: ${{runner.workspace}}/build-${{ matrix.buildType }}
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.buildType }} -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/package/Aria -DPROJECTS_UNITY_BUILD=ON -DCMAKE_TOOLCHAIN_FILE=$GITHUB_WORKSPACE/vcpkg/scripts/buildsystems/vcpkg.cmake
- name: Build
if: (steps.configure.conclusion == 'success')
id: build
working-directory: ${{runner.workspace}}/build-${{ matrix.buildType }}
shell: bash
run: cmake --build . --parallel 2 --config ${{ matrix.buildType }}
- name: Prepare success package
if: (github.event_name == 'push') && (steps.build.conclusion == 'success')
id: package
working-directory: ${{runner.workspace}}/build-${{ matrix.buildType }}
shell: bash
run: |
cmake --install . --config ${{ matrix.buildType }}
7z a $GITHUB_WORKSPACE/Aria-${{ matrix.os[1] }}.zip $GITHUB_WORKSPACE/package/Aria/
- name: Clean build folder
if: (steps.build.conclusion == 'success')
working-directory: ${{runner.workspace}}/build-${{ matrix.buildType }}
shell: bash
run: cmake --build . --config ${{ matrix.buildType }} --target clean
- name: Upload success package
if: (github.event_name == 'push') && (steps.package.conclusion == 'success')
uses: actions/upload-artifact@v2
with:
name: Aria-${{ matrix.os[1] }}.zip
path: ${{ github.workspace }}/Aria-${{ matrix.os[1] }}.zip
build-linux-gcc:
strategy:
matrix:
os: [[ubuntu-latest,x64-linux]]
buildType: [Release]
runs-on: ${{ matrix.os[0] }}
steps:
- uses: actions/checkout@v2
- name: Setup vcpkg
uses: lukka/run-vcpkg@v4
with:
vcpkgGitCommitId: '11cbb6b57b502d4864fa3c51b36b1ec88527a036'
setupOnly: true
- name: Install necessary G++ version
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends ccache gcc-10 g++-10
echo "CC=gcc-10" >> $GITHUB_ENV
echo "CXX=g++-10" >> $GITHUB_ENV
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build-${{ matrix.buildType }}
- name: Install distribution packages
shell: bash
run: |
sudo apt-get install pkg-config libgtk-3-dev libsecret-1-dev libgcrypt20-dev libsystemd-dev libbison-dev libgles2-mesa-dev libx11-dev libxft-dev libxext-dev
- name: Checkout submodules
run: |
git submodule update --init -- "CMake"
git submodule update --init --recursive -- "source/wxCharts"
- name: Configure CMake
id: configure
shell: bash
working-directory: ${{runner.workspace}}/build-${{ matrix.buildType }}
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.buildType }} -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/package/Aria -DPROJECTS_UNITY_BUILD=ON -DCMAKE_TOOLCHAIN_FILE=$GITHUB_WORKSPACE/vcpkg/scripts/buildsystems/vcpkg.cmake
- name: Build
if: (steps.configure.conclusion == 'success')
id: build
working-directory: ${{runner.workspace}}/build-${{ matrix.buildType }}
shell: bash
run: cmake --build . --parallel 2 --config ${{ matrix.buildType }}
- name: Prepare success package
if: (github.event_name == 'push') && (steps.build.conclusion == 'success')
id: package
working-directory: ${{runner.workspace}}/build-${{ matrix.buildType }}
shell: bash
run: |
cmake --install . --config ${{ matrix.buildType }}
7z a $GITHUB_WORKSPACE/Aria-${{ matrix.os[1] }}.zip $GITHUB_WORKSPACE/package/Aria/
- name: Clean build folder
if: (steps.build.conclusion == 'success')
working-directory: ${{runner.workspace}}/build-${{ matrix.buildType }}
shell: bash
run: cmake --build . --config ${{ matrix.buildType }} --target clean
- name: Upload success package
if: (github.event_name == 'push') && (steps.package.conclusion == 'success')
uses: actions/upload-artifact@v2
with:
name: Aria-${{ matrix.os[1] }}.zip
path: ${{ github.workspace }}/Aria-${{ matrix.os[1] }}.zip
build-linux-clang:
strategy:
matrix:
os: [[ubuntu-latest,x64-linux]]
buildType: [Release]
runs-on: ${{ matrix.os[0] }}
steps:
- uses: actions/checkout@v2
- name: Setup vcpkg
uses: lukka/run-vcpkg@v4
with:
vcpkgGitCommitId: '11cbb6b57b502d4864fa3c51b36b1ec88527a036'
setupOnly: true
- name: Install necessary Clang++ version
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends ccache clang-14 clang++-14
echo "CC=clang-14" >> $GITHUB_ENV
echo "CXX=clang++-14" >> $GITHUB_ENV
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build-${{ matrix.buildType }}
- name: Install distribution packages
shell: bash
run: |
sudo apt-get install pkg-config libgtk-3-dev libsecret-1-dev libgcrypt20-dev libsystemd-dev libbison-dev libgles2-mesa-dev libx11-dev libxft-dev libxext-dev
- name: Checkout submodules
run: |
git submodule update --init -- "CMake"
git submodule update --init --recursive -- "source/wxCharts"
- name: Configure CMake
id: configure
shell: bash
working-directory: ${{runner.workspace}}/build-${{ matrix.buildType }}
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.buildType }} -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/package/Aria -DPROJECTS_UNITY_BUILD=ON -DCMAKE_TOOLCHAIN_FILE=$GITHUB_WORKSPACE/vcpkg/scripts/buildsystems/vcpkg.cmake
- name: Build
if: (steps.configure.conclusion == 'success')
id: build
working-directory: ${{runner.workspace}}/build-${{ matrix.buildType }}
shell: bash
run: cmake --build . --parallel 2 --config ${{ matrix.buildType }}
- name: Prepare success package
if: (github.event_name == 'push') && (steps.build.conclusion == 'success')
id: package
working-directory: ${{runner.workspace}}/build-${{ matrix.buildType }}
shell: bash
run: |
cmake --install . --config ${{ matrix.buildType }}
7z a $GITHUB_WORKSPACE/Aria-${{ matrix.os[1] }}.zip $GITHUB_WORKSPACE/package/Aria/
- name: Clean build folder
if: (steps.build.conclusion == 'success')
working-directory: ${{runner.workspace}}/build-${{ matrix.buildType }}
shell: bash
run: cmake --build . --config ${{ matrix.buildType }} --target clean
- name: Upload success package
if: (github.event_name == 'push') && (steps.package.conclusion == 'success')
uses: actions/upload-artifact@v2
with:
name: Aria-${{ matrix.os[1] }}.zip
path: ${{ github.workspace }}/Aria-${{ matrix.os[1] }}.zip