Skip to content

Commit

Permalink
Migrate to the new figure-linux-standard action runners
Browse files Browse the repository at this point in the history
> [!WARNING]
> ## 📣 Action Required
> **The old runners will stop working on 2024-02-22, please approve and merge this PR!**
>
> If this PR does not properly build, please let us know in slack - `#devops`.

---

This PR moves all of the workflows from our old self-hosted runners and ubuntu-latest to our new `figure-linux-standard` action runners. The new runners do cool things like autoscaling, so eventually our goal is to have more runners available for devs while also spending less money.

We highly recommend wiping the Actions cache for this repo before merging this PR. We've seen some issues restoring a cache made by an old runner on a new runner, which can result in dramatically slower builds. The first build on a default branch on the new runner after wiping the cache will be slow, but subsequent builds will be faster since they'll have a proper cache restore. This can be done using the [`gh` cli](https://cli.github.com) (`brew install gh`):

```
gh cache delete --all -R FigureTechnologies/ats-smart-contract
```

Check out our [Notion Blog post](https://www.notion.so/figuretech/New-GitHub-Action-Runners-dea588c903e949f0958469492f4da882?pvs=4) for more info and our FAQ.

---

🤖🪄 This PR was automatically created by a magic script. Please reach out to `#devops` with questions.

[sc-281866]
  • Loading branch information
ahatzz11 committed Feb 8, 2024
1 parent 108b579 commit f1baf30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:

jobs:
check:
runs-on: ubuntu-latest
runs-on: figure-linux-standard
steps:
- name: checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
path: cobertura.xml
release:
needs: check
runs-on: ubuntu-latest
runs-on: figure-linux-standard
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: checkout
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:
# the task of automatically cancelling CI runs on pushes to the same branch, which is a common feature in
# most CI systems but currently not possible with GitHub actions.
cleanup-runs:
runs-on: ubuntu-latest
runs-on: figure-linux-standard
steps:
- uses: rokroskar/[email protected]
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'"

test_ats_smart_contract:
runs-on: ubuntu-latest
runs-on: figure-linux-standard
name: Test ATS Smart Contract
steps:
- name: Checkout
Expand Down

0 comments on commit f1baf30

Please sign in to comment.