fix: windowsのビルド順序を修正 #937
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
brances: | |
- 'm**' | |
paths-ignore: | |
- '**.md' | |
- 'LICENSE' | |
- 'publishAar.sh' | |
- 'docker/**' | |
pull_request: | |
branches-ignore: | |
- 'm**' | |
permissions: | |
contents: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-linux: | |
strategy: | |
fail-fast: false | |
matrix: | |
name: | |
- linux-arm | |
- linux-arm64 | |
- linux-x64 | |
- android | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Disk Cleanup | |
run: ./disk_cleanup.sh | |
- name: Setup | |
run: sudo scripts/apt_install.sh | |
- name: Build | |
run: make -C build ${{ matrix.name }} | |
- name: Upload artifact | |
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 | |
with: | |
name: libwebrtc-${{ matrix.name }}.tar.xz | |
path: package/libwebrtc-${{ matrix.name }}.tar.xz | |
compression-level: 0 | |
build-macos: | |
strategy: | |
fail-fast: false | |
matrix: | |
name: | |
- macos-arm64 | |
- macos-x64 | |
runs-on: macos-14 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Disk Cleanup | |
run: ./disk_cleanup_mac.sh | |
- name: Build | |
run: make -C build USE_CCACHE=0 ${{ matrix.name }} | |
- name: Upload artifact | |
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 | |
with: | |
name: libwebrtc-${{ matrix.name }}.tar.xz | |
path: package/libwebrtc-${{ matrix.name }}.tar.xz | |
compression-level: 0 | |
build-windows: | |
runs-on: windows-2022 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Build | |
run: powershell -NoProfile -ExecutionPolicy Unrestricted .\build.windows.ps1 | |
shell: pwsh | |
- name: Upload artifact x64 | |
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 | |
with: | |
name: libwebrtc-win-x64.7z | |
path: package/libwebrtc-win-x64.7z | |
compression-level: 0 | |
- name: Upload artifact x86 | |
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 | |
with: | |
name: libwebrtc-win-x86.7z | |
path: package/libwebrtc-win-x86.7z | |
compression-level: 0 | |
build-ios: | |
runs-on: macos-14 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Disk Cleanup | |
run: ./disk_cleanup_mac.sh | |
- name: Build | |
run: make -C build USE_CCACHE=0 ios | |
- name: Upload artifact | |
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 | |
with: | |
name: libwebrtc-ios.zip | |
path: package/libwebrtc-ios.zip | |
compression-level: 0 | |
release: | |
strategy: | |
fail-fast: false | |
max-parallel: 1 | |
matrix: | |
name: | |
- linux-arm | |
- linux-arm64 | |
- linux-x64 | |
- macos-arm64 | |
- macos-x64 | |
- android | |
- ios | |
- win-x64 | |
- win-x86 | |
include: | |
- name: linux-arm | |
ext: tar.xz | |
type: application/x-xz | |
- name: linux-arm64 | |
ext: tar.xz | |
type: application/x-xz | |
- name: linux-x64 | |
ext: tar.xz | |
type: application/x-xz | |
- name: macos-arm64 | |
ext: tar.xz | |
type: application/x-xz | |
- name: macos-x64 | |
ext: tar.xz | |
type: application/x-xz | |
- name: android | |
ext: tar.xz | |
type: application/x-xz | |
- name: ios | |
ext: zip | |
type: application/zip | |
- name: win-x64 | |
ext: 7z | |
type: application/x-7z-compressed | |
- name: win-x86 | |
ext: 7z | |
type: application/x-7z-compressed | |
name: Release ${{ matrix.name }} | |
if: contains(github.ref, 'tags/') | |
needs: | |
- build-linux | |
- build-macos | |
- build-windows | |
- build-ios | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download ${{ matrix.name }} | |
uses: actions/download-artifact@7fba95161a0924506ed1ae69cdbae8371ee00b3f # v4.1.8 | |
with: | |
name: libwebrtc-${{ matrix.name }}.${{ matrix.ext }} | |
- name: Upload ${{ matrix.name }} Release asset | |
uses: ncipollo/release-action@cdcc88a9acf3ca41c16c37bb7d21b9ad48560d87 # v1.15.0 | |
with: | |
name: Release m${{ github.ref_name }} | |
allowUpdates: true | |
draft: false | |
prerelease: false | |
artifactContentType: ${{ matrix.type }} | |
artifacts: libwebrtc-${{ matrix.name }}.${{ matrix.ext }} | |
token: ${{ secrets.GITHUB_TOKEN }} |