From 6abb66fd3281ff1e88328e66b3f54eafea1e17b7 Mon Sep 17 00:00:00 2001 From: Fede Camara Halac Date: Sun, 18 Jun 2023 22:19:26 +0200 Subject: [PATCH] add ci --- .github/workflows/compile.yml | 79 ++++++++++++++++++++++++++++++----- 1 file changed, 68 insertions(+), 11 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 9bf6561..1e138c7 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -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