Skip to content

feat: 開発者情報と寄付モーダルの追加 #12

feat: 開発者情報と寄付モーダルの追加

feat: 開発者情報と寄付モーダルの追加 #12

Workflow file for this run

name: 'Test Build'
on:
push:
branches: [main, master, development, feature/*]
pull_request:
branches: [main, master, development]
jobs:
test-tauri:
strategy:
fail-fast: false
matrix:
include:
- platform: 'macos-latest'
args: '--target aarch64-apple-darwin'
- platform: 'ubuntu-latest'
args: ''
- platform: 'windows-latest'
args: ''
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
curl \
wget \
file \
pkg-config \
libglib2.0-dev \
libwebkit2gtk-4.1-dev \
libssl-dev \
libayatana-appindicator3-dev \
librsvg2-dev \
patchelf
- name: Set PKG_CONFIG_PATH for Linux
if: matrix.platform == 'ubuntu-latest'
run: |
echo "PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig:${PKG_CONFIG_PATH}" >> $GITHUB_ENV
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
- name: Cache Rust build
uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install frontend dependencies
run: bun install --frozen-lockfile
- name: Set build environment variables
shell: bash
run: |
echo "GIT_COMMIT_HASH=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
echo "GIT_BRANCH=${GITHUB_REF_NAME}" >> $GITHUB_ENV
echo "BUILD_TIMESTAMP=$(date -u +"%Y-%m-%d %H:%M:%S UTC")" >> $GITHUB_ENV
- name: Test Build Tauri App
uses: tauri-apps/tauri-action@v0
env:
GIT_COMMIT_HASH: ${{ env.GIT_COMMIT_HASH }}
GIT_BRANCH: ${{ env.GIT_BRANCH }}
BUILD_TIMESTAMP: ${{ env.BUILD_TIMESTAMP }}
with:
args: ${{ matrix.args }}
# Don't create releases for test builds
includeRelease: false