Compare commits
2 Commits
33a2e4ba11
...
2deab66aa1
Author | SHA1 | Date | |
---|---|---|---|
2deab66aa1 | |||
b783047114 |
|
@ -7,33 +7,9 @@ on:
|
|||
- feature/**
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build automation_rs
|
||||
runs-on: ubuntu-latest
|
||||
container: catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Rust
|
||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
rustflags: ""
|
||||
|
||||
- name: Build
|
||||
run: cargo build --release --all-targets
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: build
|
||||
path: target/x86_64-unknown-linux-gnu/release/automation
|
||||
|
||||
check:
|
||||
name: Run pre-commit checks
|
||||
runs-on: ubuntu-latest
|
||||
# The lua definition check require that generate_definitions is build first
|
||||
needs: [build]
|
||||
container: catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
@ -72,6 +48,28 @@ jobs:
|
|||
run: pre-commit run --show-diff-on-failure --color=always --all-files
|
||||
shell: bash
|
||||
|
||||
build:
|
||||
name: Build automation_rs
|
||||
runs-on: ubuntu-latest
|
||||
container: catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Rust
|
||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
rustflags: ""
|
||||
|
||||
- name: Build
|
||||
run: cargo build --release
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: build
|
||||
path: target/x86_64-unknown-linux-gnu/release/automation
|
||||
|
||||
container:
|
||||
name: Build Docker image
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
@ -36,7 +36,7 @@ repos:
|
|||
- id: lua-definitions
|
||||
name: Generate lua definitions
|
||||
description: This hook generates up to date lua definitions.
|
||||
entry: cargo run --release --bin generate_definitions
|
||||
entry: cargo run --bin generate_definitions
|
||||
language: system
|
||||
types: [rust]
|
||||
pass_filenames: false
|
||||
|
|
Loading…
Reference in New Issue
Block a user