Mango/.github/workflows/build.yml

41 lines
1.1 KiB
YAML
Raw Normal View History

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:
image: crystallang/crystal:0.34.0-alpine
2020-03-19 19:24:06 +00:00
steps:
- uses: actions/checkout@v2
- name: Install dependencies
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
run: make static || make static
- 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
run: make arm32v7 || make arm32v7
2020-08-05 09:50:46 +00:00
- name: build arm64v8 object file
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