Skip to content

chore: bump version to 1.2.6 #92

chore: bump version to 1.2.6

chore: bump version to 1.2.6 #92

Workflow file for this run

name: Release
env:
RUST_BACKTRACE: full
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# on:
# release:
# types: [published]
on:
push:
tags:
- "v*"
jobs:
Testing:
name: Testing
strategy:
matrix:
include:
# Linux targets (GNU)
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu # 64位 Linux (GNU)
# Linux targets (MUSL)
- os: ubuntu-latest
target: x86_64-unknown-linux-musl # 64位 Linux (MUSL)
# Windows targets
- os: windows-latest
target: x86_64-pc-windows-msvc # 64位 Windows (MSVC)
- os: windows-latest
target: x86_64-pc-windows-gnu # 64位 Windows (MinGW)
# macOS targets
- os: macos-14
target: aarch64-apple-darwin # Apple Silicon Mac
- os: macos-13
target: x86_64-apple-darwin # Intel Mac
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Stepup
uses: ./.github/actions/setup
with:
target: ${{ matrix.target }}
# - name: Install Rust
# uses: actions-rust-lang/setup-rust-toolchain@v1
# with:
# override: true
# target: ${{ matrix.target }}
# 缓存
# - name: Cache
# uses: actions/cache@v4
# with:
# path: |
# ~/.cargo/bin/
# ~/.cargo/registry/index/
# ~/.cargo/registry/cache/
# ~/.cargo/git/db/
# target/
# key: ${{ runner.os }}-${{ matrix.target }}-cargo-${{ hashFiles('**/Cargo.lock', 'justfile') }}
# # restore-keys: |
# # ${{ runner.os }}-${{ matrix.target }}-cargo-
# - name: Install just
# uses: taiki-e/install-action@v2
# with:
# tool: just
- name: Just Setup
run: |
just setup
- name: Just Ready
run: |
just ready
- name: Just E2E
run: |
just ci-e2e
matrix-build:
strategy:
matrix:
include:
# Linux targets (GNU)
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu # 64位 Linux (GNU)
use-cross: true
cross-image: ghcr.io/cross-rs/x86_64-unknown-linux-gnu:edge
# Linux targets (MUSL)
- os: ubuntu-latest
target: x86_64-unknown-linux-musl # 64位 Linux (MUSL)
use-cross: true
cross-image: ghcr.io/cross-rs/x86_64-unknown-linux-musl:edge
# Windows targets
- os: windows-latest
target: x86_64-pc-windows-msvc # 64位 Windows (MSVC)
- os: windows-latest
target: x86_64-pc-windows-gnu # 64位 Windows (MinGW)
# macOS targets
- os: macos-14
target: aarch64-apple-darwin # Apple Silicon Mac
- os: macos-13
target: x86_64-apple-darwin # Intel Mac
name: Build ${{ matrix.target }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup ${{ matrix.target }}
uses: ./.github/actions/setup
with:
target: ${{ matrix.target }}
- name: Build ${{ matrix.target }}
uses: ./.github/actions/build
with:
target: ${{ matrix.target }}
os: ${{ matrix.os }}
use-cross: ${{ matrix.use-cross }}
cross-image: ${{ matrix.cross-image }}
- name: Upload ${{ matrix.target }}
uses: ./.github/actions/upload
with:
target: ${{ matrix.target }}
publish:
needs: [matrix-build, Testing]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Publish
uses: ./.github/actions/publish
with:
tag_name: ${{ github.ref_name }}
tag: ${{ github.ref }}