forked from cslarsen/jp2a
-
Notifications
You must be signed in to change notification settings - Fork 9
52 lines (46 loc) · 1.37 KB
/
full-check.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
# Version 20240908, by Eriberto Mota, modified by Christoph Raitzig
name: full-check
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install_dependencies
run: sudo apt update && sudo apt install libjpeg-dev libpng-dev libwebp-dev libcurl4-gnutls-dev libncurses5-dev libexif-dev pkg-config
- name: first_build
run: |
./autogen.sh
./configure
make
sudo make install
sudo make uninstall
make distclean
- name: second_build
run: |
./autogen.sh
./configure
make
sudo make install
- name: run_program
run: |
TERM=xterm-256color jp2a --colors .github/jp2a.jpg
TERM=xterm-256color jp2a --background=light -b -f -x -y --colors .github/jp2a.jpg
- name: run_tests
run: |
make test
zig-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install_dependencies
run: sudo apt update && sudo apt install libjpeg-dev libpng-dev libwebp-dev libcurl4-gnutls-dev libncurses5-dev libexif-dev pkg-config
- uses: goto-bus-stop/setup-zig@v2
- name: build with zig
run: |
./autogen.sh
CC="zig cc" ./configure
make
- name: run tests
run: |
make test