TPMS again #49
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: nix-proto-gen | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- py_dbc_proto_gen/** | |
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 |