-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (54 loc) · 1.44 KB
/
build.yaml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Build
on:
push:
branches:
- master
- feature/*
- ci/*
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
strategy:
matrix:
os:
- windows-2022
- macos-12
- ubuntu-22.04
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
id: setup-haskell
with:
enable-stack: true
stack-no-global: true
- run: bash .github/workflows/setup.sh
id: setup
shell: bash
- uses: actions/cache@v4
with:
key: stack-all-${{ runner.os }}-${{ runner.arch }}-${{
hashFiles('stack.yaml', 'hpack-common.yaml',
'lang/*/package.yaml', 'examples/lang/haskell/package.yaml') }}
path: ${{ steps.setup.outputs.STACK_ROOT }}
- run: bash .github/workflows/build.sh
shell: bash
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: bash .github/workflows/test.sh
shell: bash
- uses: actions/upload-artifact@v4
if: failure()
with:
name: x-test-${{ runner.os }}-${{ runner.arch }}
path: tmp/test
- run: bash .github/workflows/publish.sh
shell: bash
- uses: actions/upload-artifact@v4
with:
name: gugugu-${{ runner.os }}-${{ runner.arch }}
path: build/release