35 lines
804 B
YAML
35 lines
804 B
YAML
name: Binary
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
binary-archive:
|
|
runs-on: node-16-bullseye
|
|
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
|
|
|