fileinfo/.github/workflows/c-cpp.yml

32 lines
623 B
YAML
Raw Normal View History

2024-08-22 02:33:58 +05:30
name: C/C++ CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: configure
run: ./configure
2024-08-22 02:48:40 +05:30
- name: make a test file
run: echo "test file" >> test.txt
2024-08-24 18:52:59 +05:30
- name: make (MIME support)
run: make
2024-08-22 02:48:40 +05:30
- name: test the executable
run: ./fileinfo test.txt
2024-08-24 18:52:59 +05:30
- name: clean up
run: make clean
- name: make (no MIME support)
run: make nomime
- name: test the non-mime executable
run: ./fileinfo test.txt
- name: clean up
run: make clean