forked from getmango/Mango
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1012 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Build
on:
pull_request:
types: ['opened', 'reopened', 'synchronize', 'ready_for_review']
jobs:
build:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
container:
image: crystallang/crystal:1.14.0-alpine
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: apk add --no-cache yarn yaml-static sqlite-static libarchive-dev libarchive-static acl-static expat-static zstd-static lz4-static bzip2-static libjpeg-turbo-dev libpng-dev tiff-dev cmake
- name: Build
run: make static || make static
- name: Linter
run: make check
- name: Run tests
run: make test
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: mango
path: mango
- name: build arm64v8 object file
run: make arm64v8 || make arm64v8
- name: Upload object files
uses: actions/upload-artifact@v4
with:
name: object files
path: ./*.o