test github actions
This commit is contained in:
202
.github/workflows/pake_build_with_cache.yaml
vendored
202
.github/workflows/pake_build_with_cache.yaml
vendored
@@ -6,134 +6,118 @@ on:
|
|||||||
- release
|
- release
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# build:
|
build:
|
||||||
# name: build
|
name: build
|
||||||
# runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
# strategy:
|
strategy:
|
||||||
# matrix:
|
matrix:
|
||||||
# build: [linux, windows, macos]
|
build: [linux, windows, macos]
|
||||||
# include:
|
include:
|
||||||
# - build: linux
|
- build: linux
|
||||||
# os: ubuntu-20.04
|
os: ubuntu-20.04
|
||||||
# rust: stable
|
rust: stable
|
||||||
# target: x86_64-unknown-linux-musl
|
target: x86_64-unknown-linux-musl
|
||||||
# # archive-name: target-linux.tar.gz
|
# archive-name: target-linux.tar.gz
|
||||||
# - build: windows
|
- build: windows
|
||||||
# os: windows-latest
|
os: windows-latest
|
||||||
# rust: stable-x86_64-msvc
|
rust: stable-x86_64-msvc
|
||||||
# target: x86_64-pc-windows-msvc
|
target: x86_64-pc-windows-msvc
|
||||||
# # archive-name: target-windows.tar.gz
|
# archive-name: target-windows.tar.gz
|
||||||
# - build: macos
|
- build: macos
|
||||||
# os: macos-latest
|
os: macos-latest
|
||||||
# rust: stable
|
rust: stable
|
||||||
# target: x86_64-apple-darwin
|
target: x86_64-apple-darwin
|
||||||
# # archive-name: target-macos.tar.gz
|
# archive-name: target-macos.tar.gz
|
||||||
# fail-fast: false
|
fail-fast: false
|
||||||
|
|
||||||
# steps:
|
steps:
|
||||||
# - name: Checkout repository
|
- name: Checkout repository
|
||||||
# uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
# - name: install node
|
- name: install node
|
||||||
# uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
# with:
|
with:
|
||||||
# node-version: 18
|
node-version: 18
|
||||||
|
|
||||||
# - name: Install Rust
|
- name: Install Rust
|
||||||
# uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
# with:
|
with:
|
||||||
# toolchain: ${{ matrix.rust }}
|
toolchain: ${{ matrix.rust }}
|
||||||
# profile: minimal
|
profile: minimal
|
||||||
# override: true
|
override: true
|
||||||
# target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
|
|
||||||
# - name: install dependencies (ubuntu only)
|
- name: install dependencies (ubuntu only)
|
||||||
# if: matrix.os == 'ubuntu-20.04'
|
if: matrix.os == 'ubuntu-20.04'
|
||||||
# uses: awalsh128/cache-apt-pkgs-action@latest
|
uses: awalsh128/cache-apt-pkgs-action@latest
|
||||||
# with:
|
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
|
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
|
version: 1.1
|
||||||
|
|
||||||
# - name: rust cache restore
|
- name: rust cache restore
|
||||||
# uses: ylemkimon/cache-restore@v2
|
uses: ylemkimon/cache-restore@v2
|
||||||
# with:
|
with:
|
||||||
# path: |
|
path: |
|
||||||
# ~/.cargo/bin/
|
~/.cargo/bin/
|
||||||
# ~/.cargo/registry/index/
|
~/.cargo/registry/index/
|
||||||
# ~/.cargo/registry/cache/
|
~/.cargo/registry/cache/
|
||||||
# ~/.cargo/git/db/
|
~/.cargo/git/db/
|
||||||
# src-tauri/target/
|
src-tauri/target/
|
||||||
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
# - name: build for Ubuntu
|
- name: build for Ubuntu
|
||||||
# if: matrix.os == 'ubuntu-20.04'
|
if: matrix.os == 'ubuntu-20.04'
|
||||||
# run: npm run build:all-unix
|
run: npm run build:all-unix
|
||||||
|
|
||||||
# - name: build for MacOS
|
- name: build for MacOS
|
||||||
# if: matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-latest'
|
||||||
# run: |
|
run: |
|
||||||
# rustup target add aarch64-apple-darwin
|
rustup target add aarch64-apple-darwin
|
||||||
# npm run build:all-unix
|
npm run build:all-unix
|
||||||
|
|
||||||
# - name: build for windows
|
- name: build for windows
|
||||||
# if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
# run: |
|
run: |
|
||||||
# npm run build:all-windows
|
npm run build:all-windows
|
||||||
|
|
||||||
# - name: Upload files
|
- name: Upload files
|
||||||
# env:
|
env:
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# UPLOADTOOL_ISPRERELEASE: true
|
UPLOADTOOL_ISPRERELEASE: true
|
||||||
# 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
|
- name: rust cache store
|
||||||
# uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
# with:
|
with:
|
||||||
# path: |
|
path: |
|
||||||
# ~/.cargo/bin/
|
~/.cargo/bin/
|
||||||
# ~/.cargo/registry/index/
|
~/.cargo/registry/index/
|
||||||
# ~/.cargo/registry/cache/
|
~/.cargo/registry/cache/
|
||||||
# ~/.cargo/git/db/
|
~/.cargo/git/db/
|
||||||
# src-tauri/target/
|
src-tauri/target/
|
||||||
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
# - name: Build archive
|
- name: Build archive
|
||||||
# shell: bash
|
shell: bash
|
||||||
# run: |
|
run: |
|
||||||
# cd src-tauri
|
cd src-tauri
|
||||||
# tar -czf "${{ matrix.archive-name }}" target
|
tar -czf "${{ matrix.archive-name }}" target
|
||||||
|
|
||||||
# - name: Upload archive
|
- name: Upload archive
|
||||||
# uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
# with:
|
with:
|
||||||
# name: ${{ matrix.archive-name }}
|
name: ${{ matrix.archive-name }}
|
||||||
# path: src-tauri/${{ matrix.archive-name }}
|
path: src-tauri/${{ matrix.archive-name }}
|
||||||
|
|
||||||
# test build aarch64
|
# test build aarch64
|
||||||
build-arm64:
|
build-aarch64-linux:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
# needs: build-dist-bundle
|
# needs: build-dist-bundle
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
# - name: install node
|
|
||||||
# uses: actions/setup-node@v1
|
|
||||||
# with:
|
|
||||||
# node-version: 18
|
|
||||||
|
|
||||||
# - name: Install Rust
|
|
||||||
# uses: actions-rs/toolchain@v1
|
|
||||||
# with:
|
|
||||||
# toolchain: stable
|
|
||||||
# profile: minimal
|
|
||||||
# override: true
|
|
||||||
# target: aarch64-unknown-linux-gnu
|
|
||||||
|
|
||||||
# - name: npm install
|
|
||||||
# run: npm install
|
|
||||||
|
|
||||||
- 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:
|
||||||
|
|||||||
Reference in New Issue
Block a user