build-and-test.yml (552B)
1 name: Test 2 3 on: 4 workflow_call: 5 inputs: 6 os: 7 required: true 8 type: string 9 additional-setup: 10 required: false 11 type: string 12 13 jobs: 14 run: 15 runs-on: ${{ inputs.os }} 16 17 steps: 18 - name: Checkout Code 19 uses: actions/checkout@v4 20 21 - name: Additional Setup (if specified) 22 if: ${{ inputs.additional-setup != '' }} 23 run: ${{ inputs.additional-setup }} 24 25 - name: Rust cache 26 uses: Swatinem/rust-cache@v2 27 28 - name: Run Tests (Native Only) 29 run: cargo test