Skip to content

Commit

Permalink
Create newlibtiff.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hemanthmanga authored Aug 8, 2024
1 parent eccdca8 commit cf7e1e0
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/newlibtiff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Compile and Check TIFF Program

on:
push:
branches:
- Newlib
pull_request:

jobs:
build:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4

- name: Create test-tiff.cc file
run: |
echo '#include <tiff.h>
#include <tiffio.h>
int main() {
thandle_t image;
TIFFClientOpen("", "rb", image, nullptr, nullptr, nullptr, nullptr, nullptr,
nullptr, nullptr);
return 0;
}' > test-tiff.cc
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libtiff-dev pkg-config
- name: Compile the program
run: |
g++ -o test-tiff test-tiff.cc `pkg-config --static --libs libtiff-4`
- name: Check dependencies of libtiff
run: |
ldd /lib/x86_64-linux-gnu/libtiff.so.5

0 comments on commit cf7e1e0

Please sign in to comment.