Skip to content

Commit

Permalink
ci: use patches for shuttle/main on develop branch (#154)
Browse files Browse the repository at this point in the history
* feat: new dev workflow

* fix: rm dev workflow

* feat: add ci steps fro develop branch

* test: test workflow for current branch

* test: test workflow for current branch

* fix: change script file location

* fix: add run commands

* feat: change branch and step name

* fix: update patch execution command

Co-authored-by: jonaro00 <54029719+jonaro00@users.noreply.github.com>

* fix: optimize cloning

Co-authored-by: jonaro00 <54029719+jonaro00@users.noreply.github.com>

* fix: check base ref name

* debug variables

* fix: base ref name

* nit: print commit hash of shuttle checkout

---------

Co-authored-by: jonaro00 <54029719+jonaro00@users.noreply.github.com>
  • Loading branch information
sourabpramanik and jonaro00 committed Mar 18, 2024
1 parent eea22a6 commit 8cc5f7b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -36,6 +36,17 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Clone the Shuttle main repository
if: ${{ github.ref == 'refs/heads/develop' || github.base_ref == 'develop' }}
run: |
git clone --depth 1 --branch main https://github.com/shuttle-hq/shuttle.git
cd shuttle
git log -1 --format='%H'
- name: Apply patches
if: ${{ github.ref == 'refs/heads/develop' || github.base_ref == 'develop' }}
run: ./shuttle/scripts/apply-patches.sh .cargo/config.toml "$(pwd)/shuttle"

- name: Install sccache
run: |
SCCACHE_VERSION='v0.7.7'
Expand Down

0 comments on commit 8cc5f7b

Please sign in to comment.