forked from mmomtchev/ImageMagick
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eccdca8
commit cf7e1e0
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |