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:
Philippe Loctaux 2023-07-09 19:58:06 +02:00
parent 1478c516b3
commit cc8cf4ba55
2 changed files with 40 additions and 1 deletions

View 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

View file

@ -6,8 +6,10 @@ static_dir = "./static"
[default.databases.ezidam]
url = "../../database/ezidam.sqlite"
# remove this section to disable sending email
[default.email]
from = "ezidam <ezidam@mail.local>"
transport = "unencrypted"
host = "localhost"
port = 1025