Update c-cpp.yml

This commit is contained in:
Vladimir Dubrovin 2025-03-14 17:22:35 +03:00 committed by GitHub
parent c71370ec03
commit 4dbe70f5ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,10 +2,10 @@ name: C/C++ CI
on:
push:
branches: [ "master" ]
branches: [ "workflow-test" ]
paths: [ '**.c', '**.h', 'Makefile.**', '.github/configs', '.github/workflows/c-cpp.yml' ]
pull_request:
branches: [ "master" ]
branches: [ "workflow-test" ]
paths: [ '**.c', '**.h', 'Makefile.**', '.github/configs', '.github/workflows/c-cpp.yml' ]
jobs:
@ -17,6 +17,7 @@ jobs:
- ubuntu-latest
- ubuntu-24.04-arm
- macos-15
- windows-2022
runs-on: ${{ matrix.target }}
steps:
- uses: actions/checkout@v4
@ -28,12 +29,15 @@ jobs:
- name: ln Mac
if: ${{ startsWith(matrix.target, 'macos') }}
run: ln -s Makefile.FreeBSD Makefile
- name: ln Windows
if: ${{ startsWith(matrix.target, 'windows') }}
run: copy Makefile.msvc64 Makefile
- name: make
run: make -f Makefile
run: make
- name: mkdir
run: mkdir ~/3proxy
- name: make install
if: ${{ startsWith(matrix.target, 'ubuntu') }}
run: make DESTDIR=~/3proxy -f Makefile install
run: make DESTDIR=~/3proxy install
- name: make clean
run: make -f Makefile clean
run: make clean