Skip to content

Commit b16a54f

Browse files
committed
Merge remote-tracking branch 'origin/master' into T8_embedded_constants
2 parents f2aef40 + 86fae0e commit b16a54f

16 files changed

+3712
-555
lines changed

.github/workflows/export.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
name: Export
3+
4+
on:
5+
workflow_dispatch:
6+
7+
jobs:
8+
export:
9+
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Clone Repo
13+
uses: actions/checkout@v3
14+
15+
- name: Upload Artifacts
16+
uses: actions/upload-artifact@v4
17+
with:
18+
name: LJM_CONSTANTS
19+
path: ${{github.workspace}}/LabJack/*

.github/workflows/export_reusable.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Export Reusable
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
working-directory:
7+
type: string
8+
required: true
9+
10+
jobs:
11+
export:
12+
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Clone Repo
16+
uses: actions/checkout@v3
17+
18+
- name: Upload Artifacts
19+
uses: actions/upload-artifact@v3
20+
with:
21+
name: LJM_CONSTANTS
22+
path: ${{github.workspace}}/LabJack/*
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
name: LJSimpleRegisterLookup Submodule Update
3+
4+
#############################
5+
# Start the job on all push #
6+
#############################
7+
on:
8+
workflow_dispatch:
9+
# push:
10+
# # branches-ignore: [master, main]
11+
# branches: [ci_development]
12+
# pull_request:
13+
# branches: [master, main]
14+
15+
###############
16+
# Set the Job #
17+
###############
18+
jobs:
19+
build:
20+
name: Submodule update
21+
runs-on: ubuntu-latest
22+
env:
23+
PARENT_REPOSITORY: 'labjack/ljsimpleregisterlookup'
24+
CHECKOUT_BRANCH: 'main'
25+
PR_AGAINST_BRANCH: 'main'
26+
OWNER: 'labjack'
27+
28+
steps:
29+
##########################
30+
# Checkout the code base #
31+
##########################
32+
- name: Checkout Code
33+
uses: actions/checkout@v2
34+
35+
####################################
36+
# Run the action against code base #
37+
####################################
38+
- name: run action
39+
id: run_action
40+
uses: releasehub-com/github-action-create-pr-parent-submodule@v1
41+
with:
42+
github_token: ${{ secrets.LJM_CONSTANTS_ACTIONS_TOKEN }}
43+
parent_repository: ${{ env.PARENT_REPOSITORY }}
44+
checkout_branch: ${{ env.CHECKOUT_BRANCH}}
45+
pr_against_branch: ${{ env.PR_AGAINST_BRANCH }}
46+
owner: ${{ env.OWNER }}

.github/workflows/validation.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow will validate the ljm_constants.json and ljm_startup_configs.json file.
2+
3+
name: test
4+
5+
on:
6+
push:
7+
branches: [ master ]
8+
pull_request:
9+
branches: [ master ]
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
python-version: ["3.10"]
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v3
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
- name: Validate the Validator
27+
run: |
28+
python ljmmm_test.py
29+
- name: Validate ljm_constants.json
30+
run: |
31+
python validate.py ./LabJack/LJM/ljm_constants.json
32+
- name: Validate ljm_startup_configs.json
33+
run: |
34+
python validate.py ./LabJack/LJM/ljm_startup_configs.json

0 commit comments

Comments
 (0)