2021-03-26 14:55:53 +01:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
2021-06-23 16:43:58 +02:00
|
|
|
push:
|
|
|
|
branches:
|
2022-09-25 22:59:01 +02:00
|
|
|
- '*'
|
|
|
|
|
2021-06-23 16:43:58 +02:00
|
|
|
pull_request:
|
|
|
|
branches:
|
2022-09-25 22:59:01 +02:00
|
|
|
- '*'
|
2021-03-26 14:55:53 +01:00
|
|
|
|
2022-09-25 22:59:01 +02:00
|
|
|
workflow_dispatch:
|
2021-08-09 12:39:03 +02:00
|
|
|
|
2022-09-25 22:59:01 +02:00
|
|
|
jobs:
|
2021-08-09 12:39:03 +02:00
|
|
|
build_linux:
|
|
|
|
name: Linux
|
2022-09-25 22:59:01 +02:00
|
|
|
runs-on: ubuntu-22.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:
|
2022-09-25 22:59:01 +02:00
|
|
|
- name: Set Environment Variables
|
|
|
|
if: ${{ matrix.config.cc == 'gcc' }}
|
|
|
|
run: |
|
|
|
|
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
|
|
|
|
echo "INSTALL_REF=${GITHUB_REF##*/}" >> "$GITHUB_ENV"
|
|
|
|
echo "INSTALL_NAME=lite-xl-${GITHUB_REF##*/}-linux-$(uname -m)-portable" >> "$GITHUB_ENV"
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Python Setup
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: 3.9
|
|
|
|
- name: Update Packages
|
|
|
|
run: sudo apt-get update
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: bash scripts/install-dependencies.sh --debug
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
bash --version
|
|
|
|
bash scripts/build.sh --debug --forcefallback --portable
|
|
|
|
- name: Package
|
|
|
|
if: ${{ matrix.config.cc == 'gcc' }}
|
|
|
|
run: bash scripts/package.sh --version ${INSTALL_REF} --debug --binary
|
|
|
|
- name: Upload Artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
if: ${{ matrix.config.cc == 'gcc' }}
|
|
|
|
with:
|
|
|
|
name: Linux Artifacts
|
|
|
|
path: ${{ env.INSTALL_NAME }}.tar.gz
|
2021-03-26 14:55:53 +01:00
|
|
|
|
2021-08-09 12:39:03 +02:00
|
|
|
build_macos:
|
|
|
|
name: macOS (x86_64)
|
2022-09-25 22:59:01 +02:00
|
|
|
runs-on: macos-11
|
2021-08-09 12:39:03 +02:00
|
|
|
env:
|
|
|
|
CC: clang
|
|
|
|
CXX: clang++
|
|
|
|
steps:
|
2022-09-25 22:59:01 +02:00
|
|
|
- name: System Information
|
|
|
|
run: |
|
|
|
|
system_profiler SPSoftwareDataType
|
|
|
|
bash --version
|
|
|
|
gcc -v
|
|
|
|
xcodebuild -version
|
|
|
|
- name: Set Environment Variables
|
|
|
|
run: |
|
|
|
|
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
|
|
|
|
echo "INSTALL_REF=${GITHUB_REF##*/}" >> "$GITHUB_ENV"
|
|
|
|
echo "INSTALL_NAME=lite-xl-${GITHUB_REF##*/}-macos-$(uname -m)" >> "$GITHUB_ENV"
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Python Setup
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: 3.9
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: bash scripts/install-dependencies.sh --debug
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
bash --version
|
|
|
|
bash scripts/build.sh --bundle --debug --forcefallback
|
|
|
|
- name: Create DMG Image
|
|
|
|
run: bash scripts/package.sh --version ${INSTALL_REF} --debug --dmg
|
|
|
|
- name: Upload DMG Image
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: macOS DMG Image
|
|
|
|
path: ${{ env.INSTALL_NAME }}.dmg
|
2021-08-09 12:39:03 +02:00
|
|
|
|
|
|
|
build_windows_msys2:
|
|
|
|
name: Windows
|
|
|
|
runs-on: windows-2019
|
2021-04-13 23:06:07 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-08-09 12:39:03 +02:00
|
|
|
msystem: [MINGW32, MINGW64]
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: msys2 {0}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: msys2/setup-msys2@v2
|
|
|
|
with:
|
|
|
|
msystem: ${{ matrix.msystem }}
|
|
|
|
update: true
|
|
|
|
install: >-
|
|
|
|
base-devel
|
|
|
|
git
|
|
|
|
zip
|
|
|
|
- name: Set Environment Variables
|
2021-08-29 10:15:55 +02:00
|
|
|
run: |
|
|
|
|
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
|
|
|
|
echo "INSTALL_REF=${GITHUB_REF##*/}" >> "$GITHUB_ENV"
|
2022-09-25 22:59:01 +02:00
|
|
|
if [[ "${MSYSTEM}" == "MINGW64" ]]; then
|
|
|
|
echo "INSTALL_NAME=lite-xl-${GITHUB_REF##*/}-windows-x86_64" >> "$GITHUB_ENV"
|
|
|
|
else
|
|
|
|
echo "INSTALL_NAME=lite-xl-${GITHUB_REF##*/}-windows-i686" >> "$GITHUB_ENV"
|
|
|
|
fi
|
2021-08-09 12:39:03 +02:00
|
|
|
- name: Install Dependencies
|
2021-08-29 10:15:55 +02:00
|
|
|
run: bash scripts/install-dependencies.sh --debug
|
2021-08-09 12:39:03 +02:00
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
bash --version
|
2022-09-25 22:59:01 +02:00
|
|
|
bash scripts/build.sh -U --debug --forcefallback
|
2021-08-09 12:39:03 +02:00
|
|
|
- name: Package
|
2022-09-25 22:59:01 +02:00
|
|
|
run: bash scripts/package.sh --version ${INSTALL_REF} --debug --binary
|
2021-08-09 12:39:03 +02:00
|
|
|
- name: Upload Artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: Windows Artifacts
|
2022-09-25 22:59:01 +02:00
|
|
|
path: ${{ env.INSTALL_NAME }}.zip
|