diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..56b3155 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,33 @@ +name: Freetype + +on: [push, pull_request] + +env: + # Bump this to fetch a newer version + FREETYPE_VERSION: 2.10.4 + +jobs: + windows: + name: ${{ matrix.target }} + runs-on: windows-latest + strategy: + matrix: + target: ["win64"] + steps: + - name: Download sources + run: | + Invoke-WebRequest https://download.savannah.gnu.org/releases/freetype/freetype-${{ env.FREETYPE_VERSION }}.tar.gz -O freetype.tar.gz + tar xzvf freetype.tar.gz + - name: Generate + run: | + cd freetype-${{ env.FREETYPE_VERSION }} + cmake -B build -DCMAKE_BUILD_TYPE=Release + - name: Build & Package + run: | + cd freetype-${{ env.FREETYPE_VERSION }} + cmake --build build --config Release --target package + - name: Upload artifacts + uses: actions/upload-artifact@v1 + with: + name: freetype-${{ env.FREETYPE_VERSION }}-${{ matrix.target }} + path: freetype-${{ env.FREETYPE_VERSION }}/build/freetype-${{ env.FREETYPE_VERSION }}-${{ matrix.target }}.zip