Skip to content

Commit

Permalink
mingw build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciuslrangel committed Aug 20, 2022
1 parent e71cc88 commit d5c7ec3
Show file tree
Hide file tree
Showing 14 changed files with 2,257 additions and 33 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,44 @@ jobs:
if: ${{ github.event.inputs.skip_release != 'true' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
mingw:
runs-on: windows-2022
strategy:
matrix:
build_type: [Debug, Release]
fail-fast: false
steps:
- run: git config --global core.autocrlf input
- uses: actions/checkout@v2
- shell: bash
run: python3 script/check_release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} --host mingw
if: ${{ github.event.inputs.skip_release != 'true' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: msys2/setup-msys2@v2
with:
msystem: 'MINGW64'
update: true
install: >-
git
mingw-w64-x86_64-python
mingw-w64-x86_64-ninja
mingw-w64-x86_64-gcc
- shell: msys2 {0}
run: python3 script/checkout.py --version ${{ env.version }} --host mingw
- shell: msys2 {0}
run: python3 script/checkout_gn_mingw.py --version ${{ env.version }} --host mingw
- shell: msys2 {0}
run: python3 script/build.py --build-type ${{ matrix.build_type }} --host mingw
- shell: bash
run: python3 script/archive.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} --host mingw
- uses: actions/upload-artifact@v2
with:
name: Skia-${{ env.version }}-mingw-${{ matrix.build_type }}-x64.zip
path: '*.zip'
# - shell: bash
# run: python3 script/release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} --host mingw
# if: ${{ github.event.inputs.skip_release != 'true' }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/skia
/depot_tools
/gn
/build
*.zip
__pycache__
Loading

0 comments on commit d5c7ec3

Please sign in to comment.