4edfb42fdd
Quick CI / quick-test (push) Failing after 1m14s
Multi-Platform CI / test-platforms (ubuntu-22.04) (push) Successful in 19s
Multi-Platform CI / test-platforms (windows-latest) (push) Successful in 18s
Multi-Platform CI / package (ubuntu-22.04) (push) Successful in 53s
Multi-Platform CI / package (windows-latest) (push) Successful in 56s
40 lines
856 B
YAML
40 lines
856 B
YAML
name: Multi-Platform CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
# Test on platforms with native builds only
|
|
test-platforms:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
# Linux native
|
|
- os: ubuntu-22.04
|
|
|
|
# Windows native
|
|
- os: windows-latest
|
|
|
|
uses: ./.gitea/workflows/ci-reusable.yml
|
|
with:
|
|
os: ${{ matrix.os }}
|
|
upload-artifacts: false
|
|
|
|
# Package for distribution (only on master)
|
|
package:
|
|
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main')
|
|
needs: [test-platforms]
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- os: ubuntu-22.04
|
|
- os: windows-latest
|
|
|
|
uses: ./.gitea/workflows/ci-reusable.yml
|
|
with:
|
|
os: ${{ matrix.os }}
|
|
upload-artifacts: true
|
|
package-only: true
|