mirror of
https://github.com/3proxy/3proxy.git
synced 2026-04-10 23:20:12 +08:00
Update workflows and makefiles (7 commits squashed)
This commit is contained in:
parent
cb368e0792
commit
7652a9bba1
39
.github/workflows/c-cpp.yml
vendored
Normal file
39
.github/workflows/c-cpp.yml
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
name: C/C++ CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "master" ]
|
||||||
|
paths: [ '**.c', '**.h', 'Makefile.**', '.github/configs', '.github/workflows/c-cpp.yml' ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "master" ]
|
||||||
|
paths: [ '**.c', '**.h', 'Makefile.**', '.github/configs', '.github/workflows/c-cpp.yml' ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
ci:
|
||||||
|
name: "${{ matrix.target }}"
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
target:
|
||||||
|
- ubuntu-latest
|
||||||
|
- ubuntu-24.04-arm
|
||||||
|
- macos-15
|
||||||
|
runs-on: ${{ matrix.target }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
# - name: configure
|
||||||
|
# run: ./configure
|
||||||
|
- name: ln Linux
|
||||||
|
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
||||||
|
run: ln -s Makefile.Linux Makefile
|
||||||
|
- name: ln Mac
|
||||||
|
if: ${{ startsWith(matrix.target, 'macos') }}
|
||||||
|
run: ln -s Makefile.FreeBSD Makefile
|
||||||
|
- name: make
|
||||||
|
run: make -f Makefile
|
||||||
|
- name: mkdir
|
||||||
|
run: mkdir ~/3proxy
|
||||||
|
- name: make install
|
||||||
|
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
||||||
|
run: make DESTDIR=~/3proxy -f Makefile install
|
||||||
|
- name: make clean
|
||||||
|
run: make -f Makefile clean
|
||||||
Loading…
Reference in New Issue
Block a user