trifid/.forgejo/workflows/tfclient.yml

31 lines
813 B
YAML
Raw Normal View History

2023-09-27 17:47:05 +00:00
on:
push:
branches:
master
env:
CARGO_TERM_COLOR: always
jobs:
build_x64:
runs_on: docker
steps:
- name: Checkout code
2023-09-27 17:47:54 +00:00
uses: actions/checkout@v2
2023-09-27 17:47:05 +00:00
- name: Setup Go toolchain
uses: actions/setup-go@v4
2023-09-27 18:04:16 +00:00
with:
go-version: '1.20'
2023-09-27 17:47:05 +00:00
- name: Setup Rust toolchain
2023-09-27 18:00:18 +00:00
uses: https://github.com/actions-rs/toolchain@v1
2023-09-27 17:47:05 +00:00
with:
profile: minimal
toolchain: stable
override: true
- name: Enable Rust dependency caching
2023-09-27 18:00:18 +00:00
uses: https://github.com/Swatinem/rust-cache@v2
2023-09-27 17:47:05 +00:00
- name: Compile release binary
2023-09-27 18:00:18 +00:00
uses: https://github.com/actions-rs/cargo@v1
2023-09-27 17:47:05 +00:00
with:
command: build
args: --release --bin tfclient
- name: Upload binary
2023-09-27 18:03:11 +00:00
run: ls -lar target/release