diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 9ca0f32d..1df84d07 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -34,8 +34,11 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Print parent directory - run: cd .. && ls + - name: "Print current working dir" + run: ls && pwd + + - name: "Print parent dir" + run: cd .. && ls && pwd - name: Build Luau run: make config=release luau luau-analyze @@ -51,9 +54,9 @@ jobs: - name: Run benchmark run: python bench/bench.py | tee ${{ matrix.bench.script }}-output.txt - - name: Cd 1 level up and create gh-pages dir then cd into it - run: ls && cd .. && mkdir gh-pages && cd gh-pages && pwd && ls + - run: cd ../../ && mkdir gh-pages && cd gh-pages + # in gh-pages directory - name: Switch to & checkout gh-pages repo uses: actions/checkout@v3 with: @@ -68,16 +71,10 @@ jobs: git pull git status - - name: Cd back to luau before checking out original repo - run: cd .. && pwd && ls - - - name: Switch to original luau repo - uses: actions/checkout@v3 - with: - repository: ${{ github.repository }} - - - name: Print current directory & list files - run: pwd && ls + # Switch back to luau directory + - run: pwd && ls &&cd .. && pwd && ls + - run: ls gh-pages + - run: ls luau #Run `github-action-benchmark` action - name: Store ${{ matrix.bench.title }} result @@ -86,7 +83,7 @@ jobs: name: ${{ matrix.bench.title }} tool: "benchmarkluau" # This should come from Luau repo - output-file-path: ${{ matrix.bench.script }}-output.txt + output-file-path: ../${{ matrix.bench.script }}-output.txt # This should map to thebenchmark results repo external-data-json-path: ../gh-pages/dev/bench/data.json