Skip to content

Commit

Permalink
try to fix github CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-wes committed Jan 1, 2025
1 parent e09f1ae commit 00c3db4
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/compile-and-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,15 @@ jobs:

- name: install dependencies
run: |
brew install fftw
wget https://github.com/pure-data/pure-data/archive/refs/tags/${{ env.PD_VERSION }}.zip
unzip ${{ env.PD_VERSION }}.zip
- name: make
run: make install objectsdir=./build PDDIR=./pure-data-${{ env.PD_VERSION }} arch="arm64 x86_64" floatsize=${{ matrix.floatsize }} extension=darwin-fat-${{ matrix.floatsize }}.so
run: |
export LIBRARY_PATH=$LIBRARY_PATH:/opt/homebrew/lib
export CPATH=$CPATH:/opt/homebrew/include
make install objectsdir=./build PDDIR=./pure-data-${{ env.PD_VERSION }} arch="arm64 x86_64" floatsize=${{ matrix.floatsize }} extension=darwin-fat-${{ matrix.floatsize }}.so
- name: upload
uses: actions/upload-artifact@v4
Expand All @@ -79,23 +83,30 @@ jobs:
submodules: recursive
fetch-depth: 0

- name: install dependencies for 32-bit
- name: install dependencies
run: |
C:\msys64\usr\bin\pacman.exe -S --noconfirm mingw-w64-x86_64-fftw
echo "C:\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: install PD dependencies for 32-bit
if: matrix.floatsize == 32
run: |
C:\msys64\usr\bin\wget.exe http://msp.ucsd.edu/Software/pd-${{ env.PD_VERSION }}.msw.zip
unzip pd-${{ env.PD_VERSION }}.msw.zip
- name: install dependencies for 64-bit
- name: install PD dependencies for 64-bit
if: matrix.floatsize == 64
run: | # unfortunately, the folder name convention is slightly different here
run: |
C:\msys64\usr\bin\wget.exe https://puredata.info/downloads/pure-data/releases/${{ env.PD_VERSION }}-pd64/Pd64-${{ env.PD_VERSION }}.msw.zip
unzip Pd64-${{ env.PD_VERSION }}.msw.zip
Get-ChildItem -Directory -Filter 'Pd-0.*' | ForEach-Object {
Rename-Item $_.FullName "pd-${{ env.PD_VERSION }}"
}
- name: make 32-bit
run: make install objectsdir=./build PDDIR=./pd-${{ env.PD_VERSION }} PDINCLUDEDIR=./pd-${{ env.PD_VERSION }}/src PDBINDIR=./pd-${{ env.PD_VERSION }}/bin floatsize=${{ matrix.floatsize }} extension=windows-amd64-${{ matrix.floatsize }}.dll
- name: make
run: |
$env:PATH = "C:\msys64\mingw64\bin;$env:PATH"
make install objectsdir=./build PDDIR=./pd-${{ env.PD_VERSION }} PDINCLUDEDIR=./pd-${{ env.PD_VERSION }}/src PDBINDIR=./pd-${{ env.PD_VERSION }}/bin floatsize=${{ matrix.floatsize }} extension=windows-amd64-${{ matrix.floatsize }}.dll
- name: upload
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 00c3db4

Please sign in to comment.