-
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
Showing
1 changed file
with
68 additions
and
11 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 |
---|---|---|
@@ -1,33 +1,90 @@ | ||
name: C/C++ CI | ||
name: fd_lib-ci | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
ubuntu-latest: | ||
runs-on: ${{ github.job }} | ||
env: | ||
OUTPUT: fd_lib-${{ github.job }} | ||
PDPATH: resources/pure-data | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: get pdlibbuilder | ||
run: git submodule init && git submodule update | ||
- name: get pd | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: pure-data/pure-data | ||
path: $PDPATH | ||
- name: configure | ||
run: ./config.sh | ||
- name: make | ||
run: make PDINCLUDEDIR=$PDPATH/src | ||
- name: install lib | ||
run: | | ||
make install PDLIBDIR=. | ||
zip -r $OUTPUT.zip ./fd_lib | ||
- name: upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: $OUTPUT | ||
path: $OUTPUT.zip | ||
|
||
|
||
runs-on: ubuntu-latest | ||
macos-latest: | ||
runs-on: ${{ github.job }} | ||
env: | ||
OUTPUT: fd_lib-${{ github.job }} | ||
PDPATH: resources/pure-data | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: get pdlibbuilder | ||
run: git submodule init && git submodule update | ||
- name: get pd | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: pure-data/pure-data | ||
path: $PDPATH | ||
- name: configure | ||
run: ./config.sh | ||
- name: make | ||
run: make PDINCLUDEDIR=$PDPATH/src | ||
- name: install lib | ||
run: | | ||
make install PDLIBDIR=. | ||
zip -r $OUTPUT.zip ./fd_lib | ||
- name: upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: $OUTPUT | ||
path: $OUTPUT.zip | ||
|
||
|
||
windows-latest: | ||
runs-on: ${{ github.job }} | ||
env: | ||
OUTPUT: fd_lib-${{ github.job }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: get pdlibbuilder | ||
run: git submodule init && git submodule update | ||
- name: get pd | ||
run: | | ||
git clone https://github.com/pure-data/pure-data.git | ||
run: | | ||
curl -O http://msp.ucsd.edu/Software/pd-0.53-2.msw.zip | ||
unzip -d pure-data pd-0.53-2.msw.zip | ||
- name: configure | ||
run: ./config.sh | ||
- name: make | ||
run: make PDINCLUDEDIR=./pure-data/src | ||
run : make pdbinpath=pure-data/bin PDINCLUDEDIR=pure-data/src CFLAGS=-march=x86-64 -Iinclude | ||
- name: install lib | ||
run: | | ||
make install PDLIBDIR=. | ||
zip -r fd_lib.zip ./fd_lib | ||
zip -r $OUTPUT.zip ./fd_lib | ||
- name: upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: make release | ||
path: ./fd_lib.zip | ||
name: $OUTPUT | ||
path: $OUTPUT.zip |