Skip to content

跳过表达式策略修改 #238

跳过表达式策略修改

跳过表达式策略修改 #238

# This is a basic workflow to help you get started with Actions
name: push-build-check
# Controls when the workflow will run
on: push
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build-windows-x86:
# The type of runner that the job will run on
runs-on: windows-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: install qt static
uses: orestonce/install-qt@main
with:
version: Qt5.6.3-Windows-x86-MinGW4.9.4-staticFull-20200104
- name: Setup Go environment
uses: actions/setup-go@v5
with:
go-version: '1.18'
cache-dependency-path: |
./go.sum
./go.sum
- name: build
run: |
go mod tidy
go run export/main.go build-cli
go run export/main.go create-qt-lib 386 c-archive
cd m3u8d-qt && qmake && mingw32-make release && cd ..
dir m3u8d-qt\release\m3u8d-qt.exe
build-windows-x64:
runs-on: windows-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: install qt static
uses: orestonce/install-qt@main
with:
version: Qt5.15.7-Windows-x86_64-MinGW8.1.0-staticFull-20221104
- name: Setup Go environment
uses: actions/setup-go@v5
with:
go-version: '1.18'
cache-dependency-path: |
./go.sum
./go.sum
- name: build
run: |
go mod tidy
go run export/main.go create-qt-lib amd64 c-archive
cd m3u8d-qt && qmake && mingw32-make release && cd ..
dir m3u8d-qt\release\m3u8d-qt.exe
build-macos-arm64:
runs-on: macos-14
steps:
- uses: actions/checkout@v3
- name: install qt
uses: orestonce/install-qt@main
with:
version: Qt6.7.2-macOS-Universal-AppleClang15.0.0-noFramework-20240621
- name: Setup Go environment
uses: actions/setup-go@v5
with:
go-version: '1.18'
cache-dependency-path: |
./go.sum
./go.sum
- name: build
run: |
set -x
set -e
go mod tidy
go run export/main.go create-qt-lib arm64 c-shared
cd m3u8d-qt && qmake && make && cd ..
cd m3u8d-qt
install_name_tool -change m3u8d-impl @executable_path/m3u8d-impl m3u8d-qt.app/Contents/MacOS/m3u8d-qt
cp m3u8d-impl m3u8d-qt.app/Contents/MacOS/
macdeployqt m3u8d-qt.app -dmg
ls -alh m3u8d-qt.dmg
file m3u8d-qt.dmg m3u8d-impl m3u8d-qt.app/Contents/MacOS/m3u8d-qt
cd ./m3u8d-qt.app
./Contents/MacOS/m3u8d-qt test-startup
build-macos-x64:
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- name: install qt
uses: orestonce/install-qt@main
with:
version: Qt6.7.2-macOS-Universal-AppleClang15.0.0-noFramework-20240621
- name: Setup Go environment
uses: actions/setup-go@v5
with:
go-version: '1.18'
cache-dependency-path: |
./go.sum
./go.sum
- name: build
run: |
set -x
set -e
go mod tidy
go run export/main.go create-qt-lib amd64 c-shared
cd m3u8d-qt && qmake && make && cd ..
cd m3u8d-qt
install_name_tool -change m3u8d-impl @executable_path/m3u8d-impl m3u8d-qt.app/Contents/MacOS/m3u8d-qt
cp m3u8d-impl m3u8d-qt.app/Contents/MacOS/
macdeployqt m3u8d-qt.app -dmg
file m3u8d-qt.dmg m3u8d-impl m3u8d-qt.app/Contents/MacOS/m3u8d-qt
cd ./m3u8d-qt.app
./Contents/MacOS/m3u8d-qt test-startup