Merge pull request #301 from Tlntin/master
supports manual running on github actions
This commit is contained in:
29
.github/workflows/pake_build_with_cache.yaml
vendored
29
.github/workflows/pake_build_with_cache.yaml
vendored
@@ -1,9 +1,6 @@
|
|||||||
name: Build App with Cache
|
name: Build App with Cache
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_dispatch: {}
|
||||||
# Sequence of patterns matched against refs/tags
|
|
||||||
branches:
|
|
||||||
- release
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -106,6 +103,17 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: rust cache restore
|
||||||
|
uses: ylemkimon/cache-restore@v2
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cargo/bin/
|
||||||
|
~/.cargo/registry/index/
|
||||||
|
~/.cargo/registry/cache/
|
||||||
|
~/.cargo/git/db/
|
||||||
|
src-tauri/target/
|
||||||
|
key: ${{ runner.os }}-aarch64-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
- uses: uraimo/run-on-arch-action@v2.3.0
|
- uses: uraimo/run-on-arch-action@v2.3.0
|
||||||
name: build native modules using another arch
|
name: build native modules using another arch
|
||||||
with:
|
with:
|
||||||
@@ -115,6 +123,7 @@ jobs:
|
|||||||
dockerRunArgs: |
|
dockerRunArgs: |
|
||||||
--volume "${PWD}:/build"
|
--volume "${PWD}:/build"
|
||||||
--volume "/home/runner:/home/runner"
|
--volume "/home/runner:/home/runner"
|
||||||
|
--volume "/home/runner/.cargo:/home/runner/.cargo"
|
||||||
install: |
|
install: |
|
||||||
apt-get update && apt-get install -y gnupg2 && apt-get install curl -y
|
apt-get update && apt-get install -y gnupg2 && apt-get install curl -y
|
||||||
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
||||||
@@ -130,6 +139,7 @@ jobs:
|
|||||||
source "$HOME/.cargo/env"
|
source "$HOME/.cargo/env"
|
||||||
export RUST_BACKTRACE=1
|
export RUST_BACKTRACE=1
|
||||||
npm run build:all-unix
|
npm run build:all-unix
|
||||||
|
chmod -R 777 /build
|
||||||
|
|
||||||
- name: Upload files
|
- name: Upload files
|
||||||
env:
|
env:
|
||||||
@@ -138,3 +148,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
curl -L https://github.com/probonopd/uploadtool/raw/master/upload.sh --output upload.sh
|
curl -L https://github.com/probonopd/uploadtool/raw/master/upload.sh --output upload.sh
|
||||||
bash upload.sh output/*/*.*
|
bash upload.sh output/*/*.*
|
||||||
|
|
||||||
|
- name: rust cache store
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cargo/bin/
|
||||||
|
~/.cargo/registry/index/
|
||||||
|
~/.cargo/registry/cache/
|
||||||
|
~/.cargo/git/db/
|
||||||
|
src-tauri/target/
|
||||||
|
key: ${{ runner.os }}-aarch64-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
Reference in New Issue
Block a user