-
Notifications
You must be signed in to change notification settings - Fork 19
96 lines (93 loc) · 3.07 KB
/
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
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: Build and deploy skialib
on:
workflow_dispatch:
# push:
# branches:
# - master
# paths:
# - .github/workflows/**
# - "*.sh"
# env:
# release: ${{ GITHUB_SHA }}
jobs:
macos:
runs-on: macos-14
environment: Actions
strategy:
matrix:
build_type: [Release]
arch: ["x86_64", "arm64"]
fail-fast: false
env:
platform: macos
build_type: ${{ matrix.build_type }}
arch: ${{ matrix.arch }}
java_arch: ${{ matrix.arch == 'x86_64' && 'x64' || 'aarch64' }}
shared_suffix: "dylib"
artifact_name: libmembraneskia-${{matrix.arch}}.dylib
steps:
- uses: actions/checkout@v2
- run: ./csource/check_release.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: ./csource/download_skia.sh
- run: ./csource/compile_macosx.sh
- uses: actions/upload-artifact@v2
with:
name: libmembraneskia-${{matrix.arch}}.dylib
path: csource/libmembraneskia-${{matrix.arch}}.dylib
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'
architecture: ${{ env.java_arch }}
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
# Install just one or all simultaneously
cli: 1.11.2.1446 # Clojure CLI based on tools.deps
- run: clojure -T:skialib-deploy :platform '"${{env.platform}}"' :arch '"${{env.arch}}"'
env:
CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }}
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }}
linux:
runs-on: ubuntu-20.04
environment: Actions
strategy:
matrix:
build_type: [Release]
arch: ["x86_64"]
fail-fast: false
env:
platform: linux
build_type: ${{ matrix.build_type }}
arch: ${{ matrix.arch }}
shared_suffix: "so"
artifact_name: libmembraneskia-${{matrix.arch}}.so
steps:
- uses: actions/checkout@v2
- run: ./csource/check_release.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: sudo ./csource/prepare_linux.sh
- run: ./csource/download_skia.sh
- run: ./csource/compile_linux.sh
- uses: actions/upload-artifact@v2
with:
name: libmembraneskia-${{matrix.arch}}.so
path: csource/libmembraneskia-${{matrix.arch}}.so
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '11'
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
# Install just one or all simultaneously
cli: 1.11.2.1446 # Clojure CLI based on tools.deps
- run: clojure -T:skialib-deploy :platform '"${{env.platform}}"' :arch '"${{env.arch}}"'
env:
CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }}
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }}