-
-
Notifications
You must be signed in to change notification settings - Fork 17
52 lines (45 loc) · 1.18 KB
/
compile-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
name: compile-linux
on:
push:
branches:
- "**"
- "!dependabot/**"
pull_request:
workflow_dispatch:
jobs:
job:
name: ${{ matrix.os }}-${{ github.workflow }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-latest]
arch: [x86_64]
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install libraries
run: |
sudo apt-get -y install libjpeg-dev
# Initialize and build
- name: Build
run: |
./configure
make -j
make printable.man
# Gather documentation and executables to a common directory
- name: Prepare files
if: matrix.os != 'ubuntu-latest'
run: |
mkdir -p build/dist
cp jpeginfo jpeginfo.txt COPYRIGHT LICENSE README build/dist/
shell: bash
# Upload the compiled binary
- name: Upload binary
uses: actions/upload-artifact@v3
if: matrix.os != 'ubuntu-latest'
with:
name: jpegoptim-${{ matrix.os }}-${{ matrix.arch }}
path: build/dist