2020-03-19 19:24:06 +00:00
|
|
|
name: Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master, dev ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master, dev ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2020-05-17 14:08:46 +00:00
|
|
|
if: "!contains(github.event.head_commit.message, 'skip ci')"
|
2020-03-19 19:24:06 +00:00
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
2020-06-20 16:17:29 +00:00
|
|
|
image: crystallang/crystal:0.34.0-alpine
|
2020-03-19 19:24:06 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
2020-09-11 17:02:45 +00:00
|
|
|
run: apk add --no-cache yarn yaml sqlite-static libarchive-dev libarchive-static acl-static expat-static zstd-static lz4-static bzip2-static libjpeg-turbo-dev libpng-dev tiff-dev
|
2020-03-19 19:24:06 +00:00
|
|
|
- name: Build
|
2020-08-10 13:14:05 +00:00
|
|
|
run: make static || make static
|
2020-04-08 07:09:54 +00:00
|
|
|
- name: Linter
|
|
|
|
run: make check
|
2020-03-19 19:24:06 +00:00
|
|
|
- name: Run tests
|
|
|
|
run: make test
|
2020-08-04 17:24:36 +00:00
|
|
|
- name: Upload binary
|
2020-05-17 13:57:28 +00:00
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: mango
|
|
|
|
path: mango
|
2020-08-04 17:24:36 +00:00
|
|
|
- name: build arm32v7 object file
|
2020-08-10 13:14:05 +00:00
|
|
|
run: make arm32v7 || make arm32v7
|
2020-08-05 09:50:46 +00:00
|
|
|
- name: build arm64v8 object file
|
2020-08-10 13:14:05 +00:00
|
|
|
run: make arm64v8 || make arm64v8
|
2020-08-04 17:24:36 +00:00
|
|
|
- name: Upload object files
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: object files
|
2020-08-05 09:50:46 +00:00
|
|
|
path: ./*.o
|