-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (55 loc) · 1.7 KB
/
build-revealshapes-ubuntu-latest.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
name: C/C++ CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Add deb-src URIs
run: |
echo "deb-src http://archive.ubuntu.com/ubuntu/ $(lsb_release -cs) main restricted" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
- name: install libdjvulibre-dev
run: sudo apt install libdjvulibre-dev
- name: voor checokut
run: pwd
- uses: actions/checkout@v4
- name: na checokut
run: pwd
# - name: checkout headerfiles
# run: apt-get source libdjvulibre-dev; ls
- name: Determine package version
run: |
version=$(apt-cache show libdjvulibre-dev | grep Version | awk '{print $2}')
echo "::set-output name=version::$version"
- name: Download source package
run: |
version=$(echo ${{ steps.determine_package_version.outputs.version }})
apt-get source "libdjvulibre-dev=$version"
# - name: Extract source package
# run: |
# tar -xf djvulibre_*.orig.tar.gz
- name: Copy header files
run: |
mkdir -p external
cp -r djvulibre-*/libdjvu/*.h external
ls external
ls -ld external
- name: autogen.sh
run: ./autogen.sh
- name: show up header files
run: |
ls -ld /home/runner/work
ls -la /home/runner/work
ls -ld /home/runner/work/revealshapes/revealshapes/external
ls -la /home/runner/work/revealshapes/revealshapes/external
- name: make
run: make
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: revealshapes
path: revealshapes