-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (37 loc) · 1.13 KB
/
create_dbc_and_proto.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: nix-proto-gen
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build-packages:
runs-on: ubuntu-latest
strategy:
matrix:
version: [23.11]
steps:
- uses: cachix/install-nix-action@v23
- name: Get branch names
id: branch-name
uses: tj-actions/branch-names@v7
- uses: actions/checkout@v4
with:
repository: RCMast3r/data_acq
ref: refs/heads/master
- run: |
nix develop .#ci --override-input nixpkgs github:NixOS/nixpkgs/release-${{ matrix.version}} --command dbc_to_proto.py
nix develop .#ci --override-input nixpkgs github:NixOS/nixpkgs/release-${{ matrix.version}} --command protoc --include_imports --descriptor_set_out=hytech.bin hytech.proto
- name: Get current date and time
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%dT%H_%M_%S')"
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.date.outputs.date }}
files: |
hytech.proto
hytech.bin