Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug build when PR. #80

Merged
merged 2 commits into from
Jan 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Debug
on:
pull_request:
branches: ["master"]
paths:
- 'utils/**'
- 'bins/**'
jobs:
Build:
strategy:
matrix:
platform:
- name: linux-x64
os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- name: windows-x64
os: windows-latest
target: x86_64-pc-windows-msvc
- name: windows-arm64
os: windows-latest
target: aarch64-pc-windows-msvc
- name: macos-x64
os: macos-latest
target: x86_64-apple-darwin
- name: macos-arm64
os: macos-latest
target: aarch64-apple-darwin
runs-on: ${{ matrix.platform.os }}
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev
if: matrix.platform.name == 'linux-x64'
- name: Install targets
run: |
rustup target add ${{ matrix.platform.target }}
- name: Build
run: make debug-cross TARGET=${{ matrix.platform.target }}
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches: ["master"]
paths:
- 'utils/**'
- 'plugins/**'
pull_request:
branches: ["master"]
jobs:
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ book:
serve-book:
cd book && $(MAKE) serve

.PHONY: plugins release release-cross
.PHONY: plugins debug-cross release release-cross
plugins:
cd plugins && $(MAKE) plugins
debug-cross:
cd bins && $(MAKE) debug-cross TARGET=$(TARGET)
release:
cd bins && $(MAKE) release
release-cross:
Expand Down
4 changes: 3 additions & 1 deletion bins/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ clean:
update:
cargo update

.PHONY: dist release release-cross
.PHONY: dist debug-cross release release-cross
dist:
cd ayaka-gui && $(MAKE) dist
debug-cross: dist
STATIC_VCRUNTIME=false PKG_CONFIG_ALLOW_CROSS=1 cargo build --target=$(TARGET)
release: dist
STATIC_VCRUNTIME=false cargo build --release
release-cross: dist
Expand Down