2021-03-26 14:55:53 +01:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
# Triggers the workflow on push or pull request events but only for the master branch
|
|
|
|
push:
|
2021-04-13 23:06:07 +02:00
|
|
|
branches: [ master gh-actions ]
|
2021-03-26 14:55:53 +01:00
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
2021-04-13 23:06:07 +02:00
|
|
|
build-linux:
|
|
|
|
name: Build Linux
|
|
|
|
runs-on: ubuntu-18.04
|
2021-03-26 14:55:53 +01:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-04-13 23:06:07 +02:00
|
|
|
config:
|
|
|
|
- { name: "GCC", cc: gcc, cxx: g++ }
|
|
|
|
- { name: "clang", cc: clang, cxx: clang++ }
|
2021-03-26 14:55:53 +01:00
|
|
|
env:
|
2021-04-13 23:06:07 +02:00
|
|
|
CC: ${{ matrix.config.cc }}
|
|
|
|
CXX: ${{ matrix.config.cxx }}
|
2021-03-26 14:55:53 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-04-13 23:06:07 +02:00
|
|
|
- name: Set up Python
|
2021-03-26 14:55:53 +01:00
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
2021-04-13 23:06:07 +02:00
|
|
|
python-version: 3.6
|
2021-03-26 14:55:53 +01:00
|
|
|
- name: Install dependencies
|
2021-04-13 23:06:07 +02:00
|
|
|
run: |
|
|
|
|
sudo apt-get install -qq libsdl2-dev libfreetype6 ninja-build
|
|
|
|
pip3 install meson
|
|
|
|
- name: Build package
|
|
|
|
run: bash build-packages.sh x86-64
|
|
|
|
- name: upload packages
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: Ubuntu Package
|
|
|
|
path: lite-xl-linux-*.tar.gz
|
2021-03-26 14:55:53 +01:00
|
|
|
|
2021-04-13 23:06:07 +02:00
|
|
|
build-macox:
|
|
|
|
name: Build Mac OS X
|
|
|
|
runs-on: macos-10.15
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
config:
|
|
|
|
- { name: "GCC", cc: gcc-10, cxx: g++-10 }
|
|
|
|
- { name: "clang", cc: clang, cxx: clang++ }
|
|
|
|
env:
|
|
|
|
CC: ${{ matrix.config.cc }}
|
|
|
|
CXX: ${{ matrix.config.cxx }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: 3.9
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
pip3 install meson
|
|
|
|
brew install ninja sdl2
|
|
|
|
- name: Build package
|
|
|
|
run: bash build-packages.sh x86-64
|
|
|
|
- name: upload packages
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: Mac OS X Package
|
|
|
|
path: lite-xl-macosx-*.zip
|
2021-03-26 14:55:53 +01:00
|
|
|
|