From 7effcd0b673362d0bba23ebb83bb1c78ebce9a3e Mon Sep 17 00:00:00 2001 From: shBLOCK <3332908658@qq.com> Date: Tue, 5 Sep 2023 21:54:39 +0800 Subject: [PATCH] Add codegen workflow --- .github/workflows/codegen.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/codegen.yml diff --git a/.github/workflows/codegen.yml b/.github/workflows/codegen.yml new file mode 100644 index 0000000..3e05d55 --- /dev/null +++ b/.github/workflows/codegen.yml @@ -0,0 +1,34 @@ +name: Codegen + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + codegen: + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python }} + + - name: Codegen - Vector + run: python codegen/vector_codegen.py + + - run: copy codegen\output\* src\gdmath + + - name: Validate + run: pip install . + + - name: Upload Artifacts + uses: actions/upload-artifact@v3 + with: + name: codegen_results + path: codegen/output/