Skip to content

Particle Container: Runtime Arguments #280

Particle Container: Runtime Arguments

Particle Container: Runtime Arguments #280

Workflow file for this run

name: 👑 CI
on: [push, pull_request]
concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-ci
cancel-in-progress: true
jobs:
stubs:
# Pushes should only run on mainline branch "development"
# TODO: We can also skip this, if the latest commit's name is "Update Stub Files"
if: github.event_name == 'push' && github.repository == 'AMReX-Codes/pyamrex' && github.ref == 'refs/heads/development'
name: 🔄 Update Stub Files
secrets:
PYAMREX_PUSH_TOKEN: ${{ secrets.PYAMREX_PUSH_TOKEN }}
uses: ./.github/workflows/stubs.yml
ubuntu:
if: github.event.pull_request.draft == false
name: 🐧 Ubuntu
needs: ${{ github.event_name == 'push' && 'stubs' || '' }}

Check failure on line 22 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / 👑 CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 22, Col: 12): Unrecognized named-value: 'github'. Located at position 1 within expression: github.event_name == 'push' && 'stubs' || '' .github/workflows/ci.yml (Line: 28, Col: 12): Unrecognized named-value: 'github'. Located at position 1 within expression: github.event_name == 'push' && 'stubs' || ''
uses: ./.github/workflows/ubuntu.yml
intel:
if: github.event.pull_request.draft == false
name: 🐧 Intel
needs: ${{ github.event_name == 'push' && 'stubs' || '' }}
uses: ./.github/workflows/intel.yml
hip:
if: github.event.pull_request.draft == false
name: 🐧 HIP
needs: ${{ github.event_name == 'push' && 'stubs' || '' }}
uses: ./.github/workflows/hip.yml
macos:
if: github.event.pull_request.draft == false
name: 🍏 macOS
needs: ${{ github.event_name == 'push' && 'stubs' || '' }}
uses: ./.github/workflows/macos.yml
windows:
if: github.event.pull_request.draft == false
name: 🪟 Windows
needs: ${{ github.event_name == 'push' && 'stubs' || '' }}
uses: ./.github/workflows/windows.yml
codeql:
if: github.event.pull_request.draft == false
name: 🔎 CodeQL
needs: [ubuntu]
permissions:
actions: read
contents: read
security-events: write
uses: ./.github/workflows/codeql.yml
save_pr_number:
if: github.event_name != 'push'
runs-on: ubuntu-latest
steps:
- name: Save PR number
env:
PR_NUMBER: ${{ github.event.number }}
run: |
echo $PR_NUMBER > pr_number.txt
- uses: actions/upload-artifact@v3
with:
name: pr_number
path: pr_number.txt
retention-days: 1