-
Notifications
You must be signed in to change notification settings - Fork 64
64 lines (53 loc) · 1.5 KB
/
main.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Build DAPHNE
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-20.04
container: daphneeu/github-action:latest
env:
# fix usage of tput in build script:
TERM: dumb
DEBIAN_FRONTEND: noninteractive
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Fix working dir permissions
run: chown root:root .
# - name: Cache 3rd party dependency build
# id: cache-deps
# uses: actions/cache@v3
# env:
# cache-name: cache-deps
# with:
# path: ./thirdparty
# key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('build.sh') }}
# restore-keys: |
# ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('build.sh') }}
# - if: ${{ steps.cache-deps.outputs.cache-hit == 'true' }}
# name: Print cache hit result
# continue-on-error: true
# run: echo "------------ Using cached build dependencies ------------"
- name: Building
run: ./build.sh --no-fancy --no-deps --installPrefix /usr/local --target all | ts
shell: bash
- name: Testing
run: ./test.sh --no-build
- name: "List generated files"
run: |
ls -la bin
ls -la lib
- name: "Run a simple daph script"
run: bin/daphne scripts/examples/hello-world.daph
- name: 'Upload Artifact'
uses: actions/upload-artifact@v4
with:
name: daphne
path: |
bin/
lib/