Implement lightweight syntax for component handling #2364
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Benchmark vs. AoS | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| benchmark: | |
| name: Benchmarks | |
| runs-on: ubuntu-latest | |
| permissions: # required for caching | |
| actions: write | |
| contents: read | |
| steps: | |
| - name: Cancel ongoing test runs for previous commits | |
| uses: styfle/cancel-workflow-action@0.13.1 | |
| with: | |
| access_token: ${{ github.token }} | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up Julia | |
| uses: ./.github/actions/setup-julia | |
| with: | |
| julia-version: '1' | |
| project-file: 'benchmark/Project.toml' | |
| - name: Install dependencies | |
| run: julia --project=benchmark -e 'using Pkg; Pkg.develop(path="."); Pkg.instantiate()' | |
| - name: Run benchmarks | |
| run: julia --project=benchmark benchmark/run_array_of_structs.jl | |
| - name: Move file | |
| run: | | |
| mkdir bench_aos | |
| mv bench_aos.csv bench_aos/bench_aos.csv | |
| mv bench_aos_light.svg bench_aos/bench_aos_light.svg | |
| mv bench_aos_dark.svg bench_aos/bench_aos_dark.svg | |
| - name: Archive results | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: bench_aos | |
| path: bench_aos |