Testing automatic releases
This commit is contained in:
41
.gitea/workflows/release.yaml
Normal file
41
.gitea/workflows/release.yaml
Normal file
@@ -0,0 +1,41 @@
|
||||
name: Release on main branches
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-20.04]
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Update system
|
||||
run: |
|
||||
apt-get update -qy
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
apt-get install -y curl gcc git
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > ./rustup.sh
|
||||
chmod +x rustup.sh
|
||||
./rustup.sh -y
|
||||
|
||||
- name: Build release
|
||||
run: |
|
||||
. "$HOME/.cargo/env"
|
||||
cargo build --release
|
||||
|
||||
# publish:
|
||||
# image: woodpeckerci/plugin-release
|
||||
# settings:
|
||||
# files:
|
||||
# - ''
|
||||
# api_key:
|
||||
# from_secret: ACCESS_TOKEN
|
||||
16
Cargo.toml
16
Cargo.toml
@@ -4,3 +4,19 @@ version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
|
||||
[lib]
|
||||
name = "tm_interpreter"
|
||||
crate-type = ["staticlib"]
|
||||
|
||||
[profile.release]
|
||||
opt-level = "z"
|
||||
lto = true
|
||||
|
||||
# x86_64 (glibc, statisch)
|
||||
[target.x86_64-unknown-linux-gnu]
|
||||
rustflags = ["-C", "target-feature=+crt-static"]
|
||||
|
||||
# aarch64 (arm64, statisch)
|
||||
[target.aarch64-unknown-linux-gnu]
|
||||
rustflags = ["-C", "target-feature=+crt-static"]
|
||||
|
||||
Reference in New Issue
Block a user