Skip to content

[ci] Work on CI

[ci] Work on CI #79

Workflow file for this run

name: CI
on: [pull_request, push]
jobs:
CI:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 2
- name: modified_files
continue-on-error: true
run: |
files=$(git diff --diff-filter=AM --no-commit-id --name-only HEAD~1 -- '***.simc')
echo $files
if [[ -n "$files" ]]; then
echo "MODIFIED_FILES=$files" >> $GITHUB_ENV
else
exit 1
fi
- name: validate_python
run: |
python ${{ runner.workspace }}/simc-profile/scripts/validate.py \
${{ env.MODIFIED_FILES }}
- uses: ./.github/workflows/setup_simc
- run: |
pwd
tree
- name: validate_simc
run: |
python ${{ runner.workspace }}/simc-profile/scripts/execute.py \
${{ env.MODIFIED_FILES }} -b ${{ runner.workspace }}/simc-profile/simc/b/ninja/simc \
--save /dev/null
- name: execute_simc
run: |
python ${{ runner.workspace }}/simc-profile/scripts/execute.py \
${{ env.MODIFIED_FILES }} -b ${{ runner.workspace }}/simc-profile/simc/b/ninja/simc \
--execute