2021-03-26 14:55:53 +01:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
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:
|
2021-04-27 17:49:24 +02:00
|
|
|
# - { name: "GCC", cc: gcc-10, cxx: g++-10 }
|
2021-04-13 23:06:07 +02:00
|
|
|
- { 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
|