diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml new file mode 100644 index 00000000..6b5a967e --- /dev/null +++ b/.github/workflows/debug.yml @@ -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 }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7ba5cbfd..3242aa0c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,6 +4,7 @@ on: branches: ["master"] paths: - 'utils/**' + - 'plugins/**' pull_request: branches: ["master"] jobs: diff --git a/Makefile b/Makefile index fda01a2b..d3bab395 100644 --- a/Makefile +++ b/Makefile @@ -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: diff --git a/bins/Makefile b/bins/Makefile index df007f12..b1876618 100644 --- a/bins/Makefile +++ b/bins/Makefile @@ -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