mirror of
https://github.com/3proxy/3proxy.git
synced 2025-04-09 22:13:11 +08:00
Update c-cpp.yml
This commit is contained in:
parent
c71370ec03
commit
4dbe70f5ca
14
.github/workflows/c-cpp.yml
vendored
14
.github/workflows/c-cpp.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user