Skip to content

0.7-alpha.11

0.7-alpha.11 #12

Workflow file for this run

name: 'Generate binaries'
on:
release:
types: [published]
permissions:
contents: write
jobs:
generate-linux-binaries:
name: Build linux binary for target ${{ matrix.target }}
strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
- i686-unknown-linux-gnu
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version: 'latest'
- name: Install Rustup
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
rustup component add rust-src
- name: Install Cross
run: |
cargo install cross --git https://github.com/cross-rs/cross
- name: Build frontend
run: |
npm i
npm run build
- name: Build binary
run: |
cd src-tauri
CROSS_NO_WARNINGS=0 cross +nightly build -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort --release --target ${{ matrix.target }}
mv target/${{ matrix.target }}/release/tess target/${{ matrix.target }}/release/tess-${{ matrix.target }}
- name: Publish binary
uses: softprops/action-gh-release@v2
with:
files: |
src-tauri/target/${{ matrix.target }}/release/tess-${{ matrix.target }}
generate-windows-binaries:
name: Build Windows binary for target ${{ matrix.target }}
strategy:
matrix:
target:
- x86_64-pc-windows-msvc
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version: 'latest'
- name: Install Rustup
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
rustup component add rust-src
- name: Build frontend
run: |
npm i
npm run build
- name: Build binary
run: |
cd src-tauri
cargo +nightly build -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort --release --target ${{ matrix.target }}
mv target/${{ matrix.target }}/release/tess.exe target/${{ matrix.target }}/release/tess-${{ matrix.target }}.exe
- name: Publish binary
uses: softprops/action-gh-release@v2
with:
files: |
src-tauri/target/${{ matrix.target }}/release/tess-${{ matrix.target }}.exe