forked from jingkaimori/midieditor
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe41412
commit c999197
Showing
29 changed files
with
210 additions
and
323 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,67 @@ | ||
# name: Build with xmake on windows | ||
# on: | ||
# push: | ||
# branches: | ||
# - 'main' | ||
# paths: | ||
# - '**.c' | ||
# - '**.cpp' | ||
# - '**.h' | ||
# - '**.hpp' | ||
# - '**.rc' | ||
# - '**.qrc' | ||
# - '**.ts' | ||
# - '**.lua' | ||
# - '.github/workflows/xmake.yaml' | ||
|
||
# jobs: | ||
# build: | ||
# runs-on: windows-latest | ||
# if: always() | ||
|
||
# steps: | ||
# - uses: xmake-io/github-action-setup-xmake@v1 | ||
# with: | ||
# xmake-version: latest | ||
|
||
# - name: update repo | ||
# run: | | ||
# xrepo update-repo | ||
|
||
# - uses: actions/checkout@v4 | ||
# with: | ||
# fetch-depth: 1 | ||
|
||
# - name: cache packages from xrepo | ||
# uses: actions/cache@v4 | ||
# with: | ||
# path: | | ||
# ${{ env.XMAKE_GLOBALDIR }}/.xmake/packages | ||
# key: ${{ runner.os }}-xrepo-qt-${{ hashFiles('scripts/xmake/packages.lua') }} | ||
|
||
# - name: cache xmake | ||
# uses: actions/cache@v4 | ||
# with: | ||
# path: | | ||
# ${{ github.workspace }}/.xmake/**/cache | ||
# ${{ github.workspace }}/build/.build_cache | ||
# ${{ github.workspace }}/build/.deps | ||
# ${{ github.workspace }}/build/.gens | ||
# ${{ github.workspace }}/build/.objs | ||
# key: ${{ runner.os }}-xmake-build-${{ hashFiles('**/xmake.lua') }} | ||
|
||
# - name: config by xmake | ||
# run: | | ||
# xmake config --yes --verbose --diagnosis | ||
|
||
# - name: build by xmake | ||
# run: | | ||
# xmake build --verbose --diagnosis --jobs=2 | ||
name: Build with xmake on windows | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
paths: | ||
- '**.c' | ||
- '**.cpp' | ||
- '**.h' | ||
- '**.hpp' | ||
- '**.rc' | ||
- '**.qrc' | ||
- '**.ts' | ||
- '**.lua' | ||
- '.github/workflows/xmake.yaml' | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- uses: xmake-io/github-action-setup-xmake@v1 | ||
with: | ||
xmake-version: latest | ||
|
||
- name: Install Qt | ||
uses: jurplel/install-qt-action@v4 | ||
with: | ||
version: '6.8.1' | ||
host: 'windows' | ||
target: 'desktop' | ||
arch: 'win64_msvc2022_64' | ||
modules: 'qtmultimedia' | ||
|
||
- name: update repo | ||
run: | | ||
xrepo update-repo | ||
- name: cache packages from xrepo | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
${{ env.XMAKE_GLOBALDIR }}/.xmake/packages | ||
key: ${{ runner.os }}-xrepo-qt-${{ hashFiles('scripts/xmake/packages.lua') }} | ||
|
||
- name: cache xmake | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
${{ github.workspace }}/.xmake/**/cache | ||
${{ github.workspace }}/build/.build_cache | ||
${{ github.workspace }}/build/.deps | ||
${{ github.workspace }}/build/.gens | ||
${{ github.workspace }}/build/.objs | ||
key: ${{ runner.os }}-xmake-build-${{ hashFiles('**/xmake.lua') }} | ||
|
||
- name: config by xmake | ||
run: | | ||
xmake config --yes --verbose --diagnosis | ||
- name: build by xmake | ||
run: | | ||
xmake build --verbose --diagnosis --jobs=2 |
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1 @@ | ||
|
||
function add_all_requires() | ||
local qt_configs = { | ||
shared = true, | ||
vs_runtime = "MD" | ||
} | ||
|
||
add_requires("qt6base", {configs = qt_configs}) | ||
add_requires("qt6widgets", {configs = qt_configs}) | ||
add_requires("qtifw") | ||
add_requires("rtmidi") | ||
end |
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
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
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
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
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
Oops, something went wrong.