Skip to content

Commit

Permalink
Merge pull request #90 from OpenMined/rasswanth/shift-to-self-hosted
Browse files Browse the repository at this point in the history
shift workflows to use self hosted runners
  • Loading branch information
eelcovdw authored Oct 11, 2024
2 parents cd5f5f7 + 6c586c6 commit f47a869
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/cd-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,16 @@ concurrency:

jobs:
deploy-syftbox-server:
runs-on: ubuntu-latest
# runs-on: ubuntu-latest
runs-on: syftbox-sh-linux-x64

steps:
- name: Install Git
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install git -y
- name: Checkout SyftBox repo
uses: actions/checkout@v4

Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/cd-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,16 @@ jobs:

deploy-syftbox:
needs: [call-pr-tests]
runs-on: ubuntu-latest
# runs-on: ubuntu-latest
runs-on: syftbox-sh-linux-x64

steps:
- name: Install Git
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install git -y
- name: Checkout SyftBox repo with github token
uses: actions/checkout@v4
with:
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/pr-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,24 @@ jobs:
strategy:
max-parallel: 99
matrix:
os: [ubuntu-latest, macos-latest]
# os: [ubuntu-latest, macos-latest]
runner: [syftbox-sh-linux-x64, syftbox-sh-mac-arm64]
python-version: ["3.12", "3.11", "3.10"]
fail-fast: false

runs-on: ${{ matrix.os }}
# runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.runner }}
steps:
- name: Permission to home directory
run: |
sudo chown -R $USER:$USER $HOME
- name: Install Git
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install git -y
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
Expand Down

0 comments on commit f47a869

Please sign in to comment.