Skip to content

Commit

Permalink
Bring back Debug artifacts #5
Browse files Browse the repository at this point in the history
  • Loading branch information
tonsky committed May 9, 2021
1 parent 3c5d6bc commit 2970952
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 19 deletions.
40 changes: 25 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,41 +22,47 @@ jobs:
strategy:
matrix:
machine: ["x64", "arm64"]
build_type: [Release, Debug]
fail-fast: false
steps:
- uses: actions/checkout@v2
- run: python3 script/check_release.py --version ${{ env.version }}
- run: python3 script/check_release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} --machine ${{ matrix.machine }}
if: ${{ github.event.inputs.skip_release != 'true' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: python3 script/checkout.py --version ${{ env.version }}
- run: python3 script/build.py --machine ${{ matrix.machine }}
- run: python3 script/archive.py --version ${{ env.version }} --machine ${{ matrix.machine }}
- run: python3 script/build.py --build-type ${{ matrix.build_type }} --machine ${{ matrix.machine }}
- run: python3 script/archive.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} --machine ${{ matrix.machine }}
- uses: actions/upload-artifact@v2
with:
name: Skia-${{ env.version }}-macos-Release-${{ matrix.machine }}.zip
name: Skia-${{ env.version }}-macos-${{ matrix.build_type }}-${{ matrix.machine }}.zip
path: '*.zip'
- run: python3 script/release.py --version ${{ env.version }} --machine ${{ matrix.machine }}
- run: python3 script/release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} --machine ${{ matrix.machine }}
if: ${{ github.event.inputs.skip_release != 'true' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

linux:
runs-on: ubuntu-16.04
strategy:
matrix:
build_type: [Release, Debug]
fail-fast: false
steps:
- uses: actions/checkout@v2
- run: sudo ./script/prepare_linux.sh
- run: python3 script/check_release.py --version ${{ env.version }}
- run: python3 script/check_release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }}
if: ${{ github.event.inputs.skip_release != 'true' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: PATH=/usr/lib/binutils-2.26/bin:$PATH python3 script/checkout.py --version ${{ env.version }}
- run: PATH=/usr/lib/binutils-2.26/bin:$PATH python3 script/build.py
- run: PATH=/usr/lib/binutils-2.26/bin:$PATH python3 script/archive.py --version ${{ env.version }}
- run: PATH=/usr/lib/binutils-2.26/bin:$PATH python3 script/build.py --build-type ${{ matrix.build_type }}
- run: PATH=/usr/lib/binutils-2.26/bin:$PATH python3 script/archive.py --version ${{ env.version }} --build-type ${{ matrix.build_type }}
- uses: actions/upload-artifact@v2
with:
name: Skia-${{ env.version }}-linux-Release-x64.zip
name: Skia-${{ env.version }}-linux-${{ matrix.build_type }}-x64.zip
path: '*.zip'
- run: python3 script/release.py --version ${{ env.version }}
- run: python3 script/release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }}
if: ${{ github.event.inputs.skip_release != 'true' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -113,10 +119,14 @@ jobs:

windows:
runs-on: windows-2019
strategy:
matrix:
build_type: [Release, Debug]
fail-fast: false
steps:
- uses: actions/checkout@v2
- shell: bash
run: python3 script/check_release.py --version ${{ env.version }}
run: python3 script/check_release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }}
if: ${{ github.event.inputs.skip_release != 'true' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -125,15 +135,15 @@ jobs:
- shell: bash
run: python3 script/checkout.py --version ${{ env.version }}
- shell: bash
run: python3 script/build.py
run: python3 script/build.py --build-type ${{ matrix.build_type }}
- shell: bash
run: python3 script/archive.py --version ${{ env.version }}
run: python3 script/archive.py --version ${{ env.version }} --build-type ${{ matrix.build_type }}
- uses: actions/upload-artifact@v2
with:
name: Skia-${{ env.version }}-windows-Release-x64.zip
name: Skia-${{ env.version }}-windows-${{ matrix.build_type }}-x64.zip
path: '*.zip'
- shell: bash
run: python3 script/release.py --version ${{ env.version }}
run: python3 script/release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }}
if: ${{ github.event.inputs.skip_release != 'true' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ To build a debug build:

```sh
python3 script/checkout.py --version m91-b99622c05a
python3 script/build.py --debug
python3 script/archive.py --debug
python3 script/build.py --build-type Debug
python3 script/archive.py --build-type Debug
```
4 changes: 2 additions & 2 deletions script/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

def create_parser(version_required=False):
parser = argparse.ArgumentParser()
parser.add_argument('--debug', action='store_true')
parser.add_argument('--build-type', default='Release')
parser.add_argument('--version', required=version_required)
parser.add_argument('--classifier')
parser.add_argument('--system')
Expand Down Expand Up @@ -38,7 +38,7 @@ def version():
def build_type():
parser = create_parser()
(args, _) = parser.parse_known_args()
return 'Debug' if args.debug else 'Release'
return args.build_type

def classifier():
parser = create_parser()
Expand Down

0 comments on commit 2970952

Please sign in to comment.