2020-08-26 09:51:56 +10:00
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published]
|
|
|
|
|
|
|
|
name: Release
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: ${{ matrix.name }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2020-09-20 13:12:12 +10:00
|
|
|
name: ['macOS stable', 'iOS stable', 'Windows stable']
|
2020-08-26 09:51:56 +10:00
|
|
|
include:
|
2020-09-20 13:12:12 +10:00
|
|
|
- name: macOS stable
|
2020-08-26 09:51:56 +10:00
|
|
|
os: macos-10.15
|
2020-09-20 13:12:12 +10:00
|
|
|
target: x86_64-apple-darwin
|
|
|
|
- name: iOS stable
|
|
|
|
os: macos-10.15
|
|
|
|
target: aarch64-apple-ios
|
|
|
|
- name: Windows stable
|
2020-08-26 09:51:56 +10:00
|
|
|
os: windows-2019
|
2020-09-20 13:12:12 +10:00
|
|
|
target: x86_64-pc-windows-msvc
|
2020-08-26 09:51:56 +10:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- if: matrix.os == 'windows-2019'
|
|
|
|
name: Install make
|
|
|
|
run: choco install make
|
2020-09-20 13:12:12 +10:00
|
|
|
- run: rustup target add ${{ matrix.target }}
|
|
|
|
- name: Build
|
2020-09-20 13:15:11 +10:00
|
|
|
run: make CARGO_BUILD_TARGET=${{ matrix.target }} gfx-portability.zip
|
2020-08-26 09:51:56 +10:00
|
|
|
- name: Upload builds
|
|
|
|
id: upload-release-asset
|
|
|
|
uses: actions/upload-release-asset@v1
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
upload_url: ${{ github.event.release.upload_url }}
|
|
|
|
asset_path: ./gfx-portability.zip
|
2020-09-20 13:12:12 +10:00
|
|
|
asset_name: gfx-portability-${{ github.event.release.tag_name }}.${{ matrix.target }}.zip
|
2020-08-26 09:51:56 +10:00
|
|
|
asset_content_type: application/zip
|