Skip to content

Merge branch 'master' of github.com:eteran/nedit-ng #70

Merge branch 'master' of github.com:eteran/nedit-ng

Merge branch 'master' of github.com:eteran/nedit-ng #70

Workflow file for this run

name: Build
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
BUILD_TYPE: Release
BOOST_URL: 'https://boostorg.jfrog.io/artifactory/main/release/1.78.0/source/boost_1_78_0.tar.gz'
BOOST_TGZ: 'boost_1_78_0.tar.gz'
BOOST_PATH: 'D:/boost_1_78_0'
jobs:
build_ubuntu_20:
runs-on: ubuntu-20.04
steps:
- name: Install Dependencies
run: sudo apt-get install -y libboost-dev
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: "5.12.8"
setup-python: 'false'
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Configure
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --parallel 4 --config ${{env.BUILD_TYPE}}
build_windows:
runs-on: windows-2022
steps:
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: "5.12.8"
setup-python: 'false'
- name: Cache Boost
id: cache-boost
uses: actions/cache@v3
with:
path: ${{env.BOOST_PATH}}
key: win64-boost
- name: Install Boost
if: steps.cache-boost.outputs.cache-hit != 'true'
run: |
Invoke-WebRequest `
"${{ env.BOOST_URL }}" `
-OutFile "${{ env.BOOST_TGZ }}" `
-UserAgent "''"
tar xzf ${{ env.BOOST_TGZ }} -C D:/
rm ${{ env.BOOST_TGZ }}
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Configure
run: |
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -G"Visual Studio 17 2022"
env:
BOOST_ROOT: "${{env.BOOST_PATH}}"
- name: Build
run:
cmake --build ${{github.workspace}}/build --parallel 4 --target ALL_BUILD --config ${{env.BUILD_TYPE}}
- name: Deploy app
run: |
mkdir nedit-ng-win64
cp ${{github.workspace}}/build/${{env.BUILD_TYPE}}/nedit-ng.exe nedit-ng-win64/
cp ${{github.workspace}}/build/${{env.BUILD_TYPE}}/nc-ng.exe nedit-ng-win64/
windeployqt --release nedit-ng-win64/nedit-ng.exe
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: nedit-ng-win64
path: nedit-ng-win64/