This repository was archived by the owner on Dec 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
81 lines (65 loc) · 2.21 KB
/
build.yaml
File metadata and controls
81 lines (65 loc) · 2.21 KB
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
name: build
on:
push:
pull_request:
env:
LIBGDIPLUS_VERSION: '6.0.5'
jobs:
build:
runs-on: macOS-10.15
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install autotools
run:
brew install autoconf automake libtool pkg-config
- name: Download sources, install dependencies
run: |
cd runtime.osx.10.10-x64.CoreCompat.System.Drawing
git clone https://github.com/mono/libgdiplus --depth 1 --single-branch --branch ${LIBGDIPLUS_VERSION}
brew install libtiff giflib libjpeg glib cairo freetype fontconfig libpng
- name: Build
run: |
cd runtime.osx.10.10-x64.CoreCompat.System.Drawing
# libffi is keg-only
export LDFLAGS="-L/usr/local/opt/libffi/lib"
export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
./build.sh
mkdir ${{ github.workspace }}/bin/
dotnet build -c Release /p:Version=${LIBGDIPLUS_VERSION}.${GITHUB_RUN_NUMBER}
dotnet pack -c Release /p:Version=${LIBGDIPLUS_VERSION}.${GITHUB_RUN_NUMBER} -o ${{ github.workspace }}/bin/
- name: Upload NuGet package
uses: actions/upload-artifact@v2
with:
name: libgdiplus
path: |
${{ github.workspace }}/bin/
test:
runs-on: macOS-10.15
needs: build
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/download-artifact@v2
with:
name: libgdiplus
path: |
${{ github.workspace }}/bin/
- name: Clean dependencies
run: |
brew remove --force $(brew list)
echo
echo "=========================="
echo "Contents of /usr/local/opt"
echo "=========================="
echo
ls -l /usr/local/opt/
- name: Test
run: |
cd runtime.osx.10.10-x64.CoreCompat.System.Drawing.Tests
dotnet nuget list source
dotnet nuget add source ${{ github.workspace }}/bin/ -n ci
dotnet add package runtime.osx.10.10-x64.CoreCompat.System.Drawing --version ${LIBGDIPLUS_VERSION}.${GITHUB_RUN_NUMBER}
dotnet test