2023-12-16 17:59:07 -06:00
|
|
|
name: Build and Publish Rust Binary
|
2023-12-16 18:10:06 -06:00
|
|
|
on: [push]
|
2023-12-16 14:29:06 -06:00
|
|
|
jobs:
|
2023-12-16 17:59:07 -06:00
|
|
|
build:
|
2023-12-16 17:59:56 -06:00
|
|
|
runs-on: docker
|
2023-12-16 14:29:06 -06:00
|
|
|
steps:
|
2023-12-16 17:59:07 -06:00
|
|
|
- name: Set up Rust
|
2023-12-16 18:33:21 -06:00
|
|
|
uses: msrd0/rust-toolchain@nightly
|
2023-12-16 17:59:07 -06:00
|
|
|
- name: Check out code
|
2023-12-16 18:28:36 -06:00
|
|
|
uses: actions/checkout@v4
|
2023-12-16 17:59:07 -06:00
|
|
|
- name: Build binary
|
|
|
|
run: cargo build --release
|
|
|
|
- name: Publish binary
|
2023-12-16 18:42:56 -06:00
|
|
|
uses: actions/upload-artifact@v3
|
2023-12-16 17:59:07 -06:00
|
|
|
with:
|
|
|
|
name: version_name_generator
|
2023-12-16 18:42:56 -06:00
|
|
|
path: artifacts/version_name_generator
|