Skip to content

Update packages & update markdown #261

Update packages & update markdown

Update packages & update markdown #261

Workflow file for this run

name: Release
on:
push:
branches: ["master"]
paths:
- 'utils/**'
- 'bins/**'
- 'plugins/**'
- '.github/workflows/release.yml'
jobs:
Build:
strategy:
matrix:
platform:
- name: linux-x64
os: ubuntu-latest
target: x86_64-unknown-linux-gnu
postfix:
- name: windows-x64
os: windows-latest
target: x86_64-pc-windows-msvc
postfix: .exe
- name: windows-arm64
os: windows-latest
target: aarch64-pc-windows-msvc
postfix: .exe
- name: macos-x64
os: macos-latest
target: x86_64-apple-darwin
postfix:
- name: macos-arm64
os: macos-latest
target: aarch64-apple-darwin
postfix:
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.1-dev
if: matrix.platform.name == 'linux-x64'
- name: Install targets
run: |
rustup target add ${{ matrix.platform.target }}
rustup target add wasm32-unknown-unknown
- name: Build plugins
run: make examples/plugins.ayapack
if: matrix.platform.name == 'linux-x64'
- name: Build
run: make release-cross TARGET=${{ matrix.platform.target }}
- name: Publish plugins
uses: actions/upload-artifact@v3
if: matrix.platform.name == 'linux-x64'
with:
name: plugins
path: examples/plugins.ayapack
- name: Publish binaries
uses: actions/upload-artifact@v3
with:
name: release-${{ matrix.platform.name }}
path: |
bins/target/${{ matrix.platform.target }}/release/ayaka-check${{ matrix.platform.postfix }}
bins/target/${{ matrix.platform.target }}/release/ayaka-gui${{ matrix.platform.postfix }}
bins/target/${{ matrix.platform.target }}/release/ayaka-latex${{ matrix.platform.postfix }}