mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-28 16:11:35 +00:00
Add GitHub actions
This commit is contained in:
parent
246b52b086
commit
2dccb6d646
@ -1,23 +0,0 @@
|
||||
environment:
|
||||
matrix:
|
||||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||
VCVARS_FILE: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat
|
||||
VCVARS_ARG:
|
||||
ENABLE_UI: ON
|
||||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||
VCVARS_FILE: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat
|
||||
VCVARS_ARG:
|
||||
ENABLE_UI: ON
|
||||
|
||||
install:
|
||||
- call "%VCVARS_FILE%" %VCVARS_ARG%
|
||||
|
||||
before_build:
|
||||
- git submodule update --init --recursive
|
||||
|
||||
build_script:
|
||||
- mkdir build
|
||||
- cd build
|
||||
- cmake .. -G "NMake Makefiles" -DENABLE_TESTS=ON -DENABLE_UI=%ENABLE_UI%
|
||||
- nmake
|
||||
- ctest --output-on-failure
|
58
.github/workflows/build.yml
vendored
Normal file
58
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
name: build
|
||||
on: [push]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [windows-latest, macos-latest, ubuntu-latest]
|
||||
build_type: [debug]
|
||||
enable_ui: [off]
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
build_type: debug
|
||||
enable_ui: on
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
- uses: seanmiddleditch/gha-setup-ninja@master
|
||||
- uses: ilammy/msvc-dev-cmd@v1
|
||||
if: runner.os == 'Windows'
|
||||
- name: Install Dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
if [[ "${{ runner.os }}" == "Linux" ]] ; then
|
||||
sudo apt-get update -qq
|
||||
sudo apt-get install -y \
|
||||
libx11-dev libxcursor-dev libxi-dev
|
||||
fi
|
||||
- name: Generating Makefiles
|
||||
shell: bash
|
||||
run: |
|
||||
cmake -S . -B build -G Ninja \
|
||||
-DENABLE_TESTS=ON \
|
||||
-DENABLE_UI=${{ matrix.enable_ui }}
|
||||
- name: Compiling
|
||||
shell: bash
|
||||
run: |
|
||||
cd build && ninja
|
||||
- name: Running C++ Tests
|
||||
shell: bash
|
||||
run: |
|
||||
if [[ "${{ runner.os }}" == "Linux" ]] ; then
|
||||
export XVFB=xvfb-run
|
||||
fi
|
||||
cd build && $XVFB ctest --output-on-failure
|
||||
- name: Running CLI Tests
|
||||
shell: bash
|
||||
run: |
|
||||
if [[ "${{ runner.os }}" == "Linux" ]] ; then
|
||||
export XVFB=xvfb-run
|
||||
fi
|
||||
cd build
|
||||
export ASEPRITE=$PWD/bin/aseprite
|
||||
git clone --recursive https://github.com/aseprite/tests.git
|
||||
cd tests
|
||||
$XVFB bash run-tests.sh
|
75
.travis.yml
75
.travis.yml
@ -1,75 +0,0 @@
|
||||
language: cpp
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- os: osx
|
||||
env:
|
||||
- ENABLE_UI=ON
|
||||
- MATRIX_EVAL="wget https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-mac.zip && unzip ninja-mac.zip && export PATH=$PWD:$PATH"
|
||||
- os: linux
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- libpixman-1-dev libfreetype6-dev libharfbuzz-dev libx11-dev libxcursor-dev libxi-dev ninja-build
|
||||
env:
|
||||
- ENABLE_UI=OFF
|
||||
- XVFB=xvfb-run
|
||||
- os: linux
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- libpixman-1-dev libfreetype6-dev libharfbuzz-dev libx11-dev libxcursor-dev libxi-dev ninja-build
|
||||
env:
|
||||
- ENABLE_SCRIPTING=OFF
|
||||
- XVFB=xvfb-run
|
||||
- os: linux
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- libpixman-1-dev libfreetype6-dev libharfbuzz-dev libx11-dev libxcursor-dev libxi-dev ninja-build
|
||||
env:
|
||||
- ENABLE_SCRIPTING=OFF
|
||||
- ENABLE_UI=OFF
|
||||
- SKIP_TESTS_REPO=ON
|
||||
- XVFB=xvfb-run
|
||||
- os: linux
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- libpixman-1-dev libfreetype6-dev libharfbuzz-dev libx11-dev libxcursor-dev libxi-dev ninja-build
|
||||
env:
|
||||
- ENABLE_UI=ON
|
||||
- XVFB=xvfb-run
|
||||
- os: linux
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- ubuntu-toolchain-r-test
|
||||
packages:
|
||||
- g++-7 libpixman-1-dev libfreetype6-dev libharfbuzz-dev libx11-dev libxcursor-dev libxi-dev ninja-build
|
||||
env:
|
||||
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
|
||||
- ENABLE_UI=ON
|
||||
- XVFB=xvfb-run
|
||||
|
||||
before_install:
|
||||
- eval "${MATRIX_EVAL}"
|
||||
|
||||
before_script:
|
||||
- mkdir build
|
||||
- cd build
|
||||
- cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTS=ON -DENABLE_UI=$ENABLE_UI
|
||||
|
||||
script:
|
||||
- ninja
|
||||
- |
|
||||
if $XVFB ctest --output-on-failure ; then
|
||||
if [ "$SKIP_TESTS_REPO" == "" ] ; then
|
||||
export ASEPRITE=$PWD/bin/aseprite
|
||||
git clone --recursive https://github.com/aseprite/tests.git
|
||||
cd tests
|
||||
$XVFB bash run-tests.sh
|
||||
fi
|
||||
else
|
||||
exit 1
|
||||
fi
|
@ -1,7 +1,6 @@
|
||||
# Aseprite
|
||||
|
||||
[](https://travis-ci.org/aseprite/aseprite)
|
||||
[](https://ci.appveyor.com/project/dacap/aseprite)
|
||||
[](https://github.com/aseprite/aseprite/actions/workflows/build.yml)
|
||||
[](https://community.aseprite.org/)
|
||||
[](https://discord.gg/Yb2CeX8)
|
||||
|
||||
|
@ -11,6 +11,9 @@
|
||||
#include "doc/algorithm/flip_image.h"
|
||||
#include "render/gradient.h"
|
||||
|
||||
#include <array>
|
||||
#include <memory>
|
||||
|
||||
namespace app {
|
||||
namespace tools {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user