Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwparas committed Sep 2, 2024
1 parent 4e0ac55 commit 72f7a1f
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ jobs:
name: PGO Build
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ { os: ubuntu-latest, arch: x86_64-unknown-linux-gnu },
{ os: macos-latest, arch: aarch64-apple-darwin } ]
# windows-latest]
# needs: check_changes
# if: ${{needs.check_changes.outputs.should_run != 'false'}}
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.os.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down Expand Up @@ -80,22 +82,23 @@ jobs:
env:
STEEL_HOME: ${{ env.STEEL_HOME }}
run: |
./target/x86_64-unknown-linux-gnu/release/steel r7rs-benchmarks/scheme.scm
./target/x86_64-unknown-linux-gnu/release/steel r7rs-benchmarks/simplex.scm
./target/x86_64-unknown-linux-gnu/release/steel r7rs-benchmarks/array1.scm
./target/x86_64-unknown-linux-gnu/release/steel r7rs-benchmarks/triangl.scm
./target/x86_64-unknown-linux-gnu/release/steel benchmarks/fib/fib.scm
./target/${{ matrix.os.arch }}/release/steel r7rs-benchmarks/scheme.scm
./target/${{ matrix.os.arch }}/release/steel r7rs-benchmarks/simplex.scm
./target/${{ matrix.os.arch }}/release/steel r7rs-benchmarks/array1.scm
./target/${{ matrix.os.arch }}/release/steel r7rs-benchmarks/triangl.scm
./target/${{ matrix.os.arch }}/release/steel benchmarks/fib/fib.scm
- name: Build optimized binary
run: cargo pgo optimize

- name: Archive pgo optimized binary
uses: actions/upload-artifact@v4
with:
name: pgo-nightly-build
path: target/x86_64-unknown-linux-gnu/release/steel
name: pgo-nightly-build-${{ matrix.os.arch }}
path: target/${{ matrix.os.arch }}/release/steel
retention-days: 30

# Now do something with the PGO optimized binary at `./target/x86_64-unknown-linux-gnu/release/foo` :)



0 comments on commit 72f7a1f

Please sign in to comment.