Skip to content

Commit

Permalink
[ci] big experimentation no shot this works first time
Browse files Browse the repository at this point in the history
  • Loading branch information
harrand committed May 18, 2024
1 parent ed35451 commit bb4864f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 25 deletions.
23 changes: 23 additions & 0 deletions .github/actions/run_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "run-tests"
description: "Download a previously-generated psyc and try to compile some stuff with it."

inputs:
build_config:
required: true
type: string
compiler:
required: true
type: string

runs:
using: "composite"
steps:
- uses: actions/checkout@v4

- name: Retrieve psyc
uses: actions/download-artifact@v4
with:
name: psyc_${{ inputs.compiler }}_${{ inputs.build_config }}

- name: scratchpad.psy
run: psyc -v ./samples/scratchpad.psy --dump-ast --dump-ir
2 changes: 1 addition & 1 deletion .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
path: ./cpp/build/ci_${{ matrix.build_config }}/psyc

- name: 'Run Tests'
uses: Harrand/psyc/.github/workflows/build_linux.yml@master
uses: ./.github/actions/run_tests.yml
with:
compiler: ${{ matrix.compiler }}
build_config: ${{ matrix.build_config }}
24 changes: 0 additions & 24 deletions .github/workflows/run_tests.yml

This file was deleted.

0 comments on commit bb4864f

Please sign in to comment.