ci: build musl binary, archive assets
ci: using new docker image ci: skip the tar ci: treat folders as folders ci: bring back the tar ci: paths ci: new paths ci: name the artifact
This commit is contained in:
parent
1478c516b3
commit
cc8cf4ba55
2 changed files with 40 additions and 1 deletions
37
.gitea/workflows/binary.yml
Normal file
37
.gitea/workflows/binary.yml
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
name: Binary
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
binary-archive:
|
||||||
|
runs-on: node-16-bullseye
|
||||||
|
container:
|
||||||
|
image: muslrust:stable-philt3r
|
||||||
|
steps:
|
||||||
|
- name: Get code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
# rust
|
||||||
|
- name: Rust toolchain
|
||||||
|
uses: https://github.com/dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
targets: x86_64-unknown-linux-musl
|
||||||
|
- run: cargo build --target x86_64-unknown-linux-musl --release
|
||||||
|
|
||||||
|
# archive
|
||||||
|
- name: Create archive
|
||||||
|
run: >
|
||||||
|
tar -cvf /tmp/ezidam.tar
|
||||||
|
-C ./crates/ezidam ezidam.toml
|
||||||
|
-C ./ static/
|
||||||
|
-C ./ templates/
|
||||||
|
-C ../../target/x86_64-unknown-linux-musl/release ezidam
|
||||||
|
|
||||||
|
# upload
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: ezidam.tar
|
||||||
|
path: /tmp/ezidam.tar
|
||||||
|
|
||||||
|
|
@ -6,8 +6,10 @@ static_dir = "./static"
|
||||||
[default.databases.ezidam]
|
[default.databases.ezidam]
|
||||||
url = "../../database/ezidam.sqlite"
|
url = "../../database/ezidam.sqlite"
|
||||||
|
|
||||||
|
# remove this section to disable sending email
|
||||||
[default.email]
|
[default.email]
|
||||||
from = "ezidam <ezidam@mail.local>"
|
from = "ezidam <ezidam@mail.local>"
|
||||||
transport = "unencrypted"
|
transport = "unencrypted"
|
||||||
host = "localhost"
|
host = "localhost"
|
||||||
port = 1025
|
port = 1025
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue