Skip to content

fix: windowsビルドエラー修正 #911

fix: windowsビルドエラー修正

fix: windowsビルドエラー修正 #911

Workflow file for this run

name: build
on:
push:
paths-ignore:
- '**.md'
- 'LICENSE'
- 'publishAar.sh'
- 'docker/**'
pull_request:
permissions:
contents: write
jobs:
build-linux:
strategy:
fail-fast: false
matrix:
name:
- linux-arm
- linux-arm64
- linux-x64
- android
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- 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@v4
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:
- uses: actions/checkout@v4
- 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@v4
with:
name: libwebrtc-${{ matrix.name }}.tar.xz
path: package/libwebrtc-${{ matrix.name }}.tar.xz
compression-level: 0
build-windows:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- name: Disk Cleanup
run: .\disk_cleanup.bat
- name: Build
run: powershell -NoProfile -ExecutionPolicy Unrestricted .\build.windows.ps1
shell: pwsh
- name: Upload artifact x64
uses: actions/upload-artifact@v4
with:
name: libwebrtc-win-x64.7z
path: package/libwebrtc-win-x64.7z
compression-level: 0
- name: Upload artifact x86
uses: actions/upload-artifact@v4
with:
name: libwebrtc-win-x86.7z
path: package/libwebrtc-win-x86.7z
compression-level: 0
build-ios:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- 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@v4
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@v4
with:
name: libwebrtc-${{ matrix.name }}.${{ matrix.ext }}
- name: Upload ${{ matrix.name }} Release asset
uses: ncipollo/release-action@v1
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 }}