chore: Add auto build
Some checks failed
Build Rust / Build aarch64-apple-darwin (push) Waiting to run
Build Rust / Build x86_64-apple-darwin (push) Waiting to run
Build Rust / Build aarch64-pc-windows-msvc (push) Waiting to run
Build Rust / Build i686-pc-windows-msvc (push) Waiting to run
Build Rust / Build x86_64-pc-windows-msvc (push) Waiting to run
Build Rust / Build aarch64-unknown-linux-gnu (push) Failing after 10m13s
Build Rust / Build armv7-unknown-linux-gnueabihf (push) Failing after 10m29s
Build Rust / Build i686-unknown-linux-gnu (push) Failing after 10m36s
Build Rust / Build x86_64-unknown-linux-gnu (push) Failing after 3m23s
Some checks failed
Build Rust / Build aarch64-apple-darwin (push) Waiting to run
Build Rust / Build x86_64-apple-darwin (push) Waiting to run
Build Rust / Build aarch64-pc-windows-msvc (push) Waiting to run
Build Rust / Build i686-pc-windows-msvc (push) Waiting to run
Build Rust / Build x86_64-pc-windows-msvc (push) Waiting to run
Build Rust / Build aarch64-unknown-linux-gnu (push) Failing after 10m13s
Build Rust / Build armv7-unknown-linux-gnueabihf (push) Failing after 10m29s
Build Rust / Build i686-unknown-linux-gnu (push) Failing after 10m36s
Build Rust / Build x86_64-unknown-linux-gnu (push) Failing after 3m23s
This commit is contained in:
60
.gitea/workflows/build.yml
Normal file
60
.gitea/workflows/build.yml
Normal file
@ -0,0 +1,60 @@
|
||||
name: Build Rust
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build ${{ matrix.target }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
# LINUX
|
||||
- os: ubuntu-latest
|
||||
target: x86_64-unknown-linux-gnu
|
||||
- os: ubuntu-latest
|
||||
target: i686-unknown-linux-gnu
|
||||
- os: ubuntu-latest
|
||||
target: aarch64-unknown-linux-gnu
|
||||
- os: ubuntu-latest
|
||||
target: armv7-unknown-linux-gnueabihf
|
||||
|
||||
# WINDOWS
|
||||
- os: windows-latest
|
||||
target: x86_64-pc-windows-msvc
|
||||
- os: windows-latest
|
||||
target: i686-pc-windows-msvc
|
||||
- os: windows-latest
|
||||
target: aarch64-pc-windows-msvc
|
||||
|
||||
# MACOS
|
||||
- os: macos-latest
|
||||
target: x86_64-apple-darwin
|
||||
- os: macos-latest
|
||||
target: aarch64-apple-darwin
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Rust toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
override: true
|
||||
target: ${{ matrix.target }}
|
||||
|
||||
- name: Build Release
|
||||
run: cargo build --release --target ${{ matrix.target }}
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ matrix.target }}
|
||||
path: target/${{ matrix.target }}/release/papulastic-image-format*
|
||||
if-no-files-found: error
|
||||
Reference in New Issue
Block a user