Skip to content

Commit

Permalink
test make win
Browse files Browse the repository at this point in the history
  • Loading branch information
JoesCat committed Nov 14, 2023
1 parent 917f0e8 commit 2a15108
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,46 @@ jobs:
- name: Test make distcheck
if: matrix.choiceL == '--disable-silent-rules'
run: make distcheck
win:
strategy:
fail-fast: false
max-parallel: 2
matrix:
include: [
{msystem: MINGW32, toolchain: mingw-w64-i686, version: x32 },
{msystem: MINGW64, toolchain: mingw-w64-x86_64, version: x64 },
]
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Install msys2 build environment
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.msystem }}
update: false
install: base-devel git ${{ matrix.toolchain }}-toolchain ${{ matrix.toolchain }}-gimp ${{ matrix.toolchain }}-fftw ${{ matrix.toolchain }}-gsl ${{ matrix.toolchain }}-gettext
- run: git config --global core.autocrlf input
shell: bash

- uses: actions/checkout@v2

- name: Build plugin
shell: msys2 {0}
run: |
echo $(gimptool-2.0 -n --build src/alignment.c) -lfftw3 -lgsl -O3 | sh
cp `which libfftw3-3.dll` .
cp `which libgsl.dll` .
- name: Get GIMP version
shell: msys2 {0}
run: echo "GIMPVER=$(pacman -Q ${{ matrix.toolchain }}-gimp | cut -d ' ' -f 2)" >> $GITHUB_ENV

- uses: actions/upload-artifact@v2
with:
name: fourier_gimp${{ env.GIMPVER }}_${{ matrix.version }}
path: |
./alignment.exe
./libfftw3-3.dll
./libgsl.dll

0 comments on commit 2a15108

Please sign in to comment.