diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a5d8259..3c86de2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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