rabbitizer/.github/workflows/check_tables.yml

54 lines
1.3 KiB
YAML
Raw Normal View History

name: Check for ungenerated tables
# Build on every branch push, tag push, and pull request change:
on: [push, pull_request]
jobs:
check_tables:
name: Check tables
runs-on: ubuntu-latest
steps:
- name: Checkout reposistory
uses: actions/checkout@v3
2023-04-30 13:08:59 +00:00
with:
ref: ${{ github.head_ref }}
- name: clean everything
run: make -j $(nproc) distclean
- name: make tables
run: make -j $(nproc) tables
- name: Check if there are tables changes
id: tables_changes
2023-04-30 13:14:23 +00:00
uses: tj-actions/verify-changed-files@v14
- name: tables changes
2023-04-30 13:14:23 +00:00
if: steps.tables_changes.outputs.files_changed == 'true'
run: exit 1
check_rust_tables:
name: Check Rust tables
runs-on: ubuntu-latest
steps:
- name: Checkout reposistory
uses: actions/checkout@v3
2023-04-30 13:08:59 +00:00
with:
ref: ${{ github.head_ref }}
- name: clean everything
run: make -j $(nproc) -C rust distclean
- name: make Rust tables
run: make -j $(nproc) -C rust tables
- name: Check if there are Rust tables changes
id: rust_tables_changes
2023-04-30 13:14:23 +00:00
uses: tj-actions/verify-changed-files@v14
- name: Rust tables changes
2023-04-30 13:14:23 +00:00
if: steps.rust_tables_changes.outputs.files_changed == 'true'
run: exit 1