forked from nsimplex/ktools
-
Notifications
You must be signed in to change notification settings - Fork 3
73 lines (70 loc) · 2.06 KB
/
linux.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
name: Linux
on:
push:
branches:
- develop
- main
env:
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
SLACK_SIGNING_SECRET: ${{ secrets.SLACK_SIGNING_SECRET }}
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
jobs:
build:
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
strategy:
matrix:
os: [ubuntu-latest]
container: ['debian:bullseye']
steps:
- name: Check out
uses: actions/checkout@v3
- name: Send Slack notification
uses: codedsolar/slack-action@v1
if: ${{ github.event_name != 'pull_request' }}
id: slack
with:
status: in-progress
- name: Install dependencies
run: |
apt-get update
apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
cmake \
libpng-dev \
libreadline-dev \
libzip-dev \
nodejs \
pkg-config \
wget
- name: Install ImageMagick
run: |
wget -P /tmp/ "https://imagemagick.org/archive/releases/ImageMagick-${IMAGEMAGICK_VERSION}.tar.xz"
tar xf "/tmp/ImageMagick-${IMAGEMAGICK_VERSION}.tar.xz" -C /tmp/
cd /tmp/ImageMagick-${IMAGEMAGICK_VERSION}/
./configure
make
make install
ldconfig /usr/local/lib/
env:
IMAGEMAGICK_VERSION: 7.1.1-6
- name: Build and install ktools
run: ./configure && make && make install
- name: Run ktech
run: ktech --version
- name: Run krane
run: krane --version
- name: Test
run: ./test/test.sh
- name: Upload test output
uses: actions/upload-artifact@v3
with:
name: linux-test-output
path: test/output/
- name: Update Slack notification
uses: codedsolar/slack-action@v1
if: ${{ github.event_name != 'pull_request' && always() }}
with:
status: ${{ job.status }}
timestamp: ${{ steps.slack.outputs.slack-timestamp }}