Batch packaging scheme for migrating the master branch
This commit is contained in:
63
.github/workflows/pake_build.yaml
vendored
63
.github/workflows/pake_build.yaml
vendored
@@ -1,10 +1,9 @@
|
||||
name: build
|
||||
name: Build App
|
||||
on:
|
||||
push:
|
||||
# Sequence of patterns matched against refs/tags
|
||||
tags:
|
||||
- "V*"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -15,16 +14,16 @@ jobs:
|
||||
build: [linux, windows, macos]
|
||||
include:
|
||||
- build: linux
|
||||
os: ubuntu-latest
|
||||
rust: nightly
|
||||
os: ubuntu-20.04
|
||||
rust: stable
|
||||
target: x86_64-unknown-linux-musl
|
||||
- build: windows
|
||||
os: windows-latest
|
||||
rust: nightly-x86_64-msvc
|
||||
rust: stable-x86_64-msvc
|
||||
target: x86_64-pc-windows-msvc
|
||||
- build: macos
|
||||
os: macos-latest
|
||||
rust: nightly
|
||||
rust: stable
|
||||
target: x86_64-apple-darwin
|
||||
fail-fast: false
|
||||
|
||||
@@ -46,13 +45,25 @@ jobs:
|
||||
target: ${{ matrix.target }}
|
||||
|
||||
- name: install dependencies (ubuntu only)
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf gnome-video-effects gnome-video-effects-extra
|
||||
if: matrix.os == 'ubuntu-20.04'
|
||||
uses: awalsh128/cache-apt-pkgs-action@latest
|
||||
with:
|
||||
packages: libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev gnome-video-effects gnome-video-effects-extra
|
||||
version: 1.1
|
||||
|
||||
- name: rust cache restore
|
||||
uses: actions/cache/restore@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
src-tauri/target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
|
||||
- name: build for Ubuntu
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
if: matrix.os == 'ubuntu-20.04'
|
||||
run: npm run build:all-unix
|
||||
|
||||
- name: build for MacOS
|
||||
@@ -63,30 +74,14 @@ jobs:
|
||||
|
||||
- name: build for windows
|
||||
if: matrix.os == 'windows-latest'
|
||||
shell: pwsh
|
||||
run: |
|
||||
npm run build:all-windows
|
||||
|
||||
# - name: Create Release and Upload Release Asset
|
||||
# uses: softprops/action-gh-release@v1
|
||||
# if: startsWith(github.ref, 'refs/tags/')
|
||||
# with:
|
||||
# tag_name: ${{ github.ref }}
|
||||
# name: Release ${{ github.ref }}
|
||||
# body: TODO New Release.
|
||||
# draft: false
|
||||
# prerelease: false
|
||||
# files: |
|
||||
# output/*/*.*
|
||||
|
||||
# - uses: ncipollo/release-action@v1
|
||||
# if: startsWith(github.ref, 'refs/tags/v')
|
||||
# with:
|
||||
# allowUpdates: true
|
||||
# artifacts: "output/*/*.*"
|
||||
# token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Upload files
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
curl -L https://github.com/probonopd/uploadtool/raw/master/upload.sh --output upload.sh
|
||||
bash upload.sh output/*/*.*
|
||||
# arg info: https://github.com/ncipollo/release-action#release-action
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
allowUpdates: true
|
||||
artifacts: "output/*/*.*"
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user