-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transition to GitHub actions #62
Open
postrational
wants to merge
2
commits into
master
Choose a base branch
from
mk/github_actions
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
name: Run benchmarks | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
onnxruntime_stable: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 90 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build docker image | ||
run: docker build -t scoreboard/onnx -f runtimes/onnx-runtime/stable/Dockerfile . | ||
|
||
- name: Set up SSH | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: | | ||
${{ secrets.DEPLOY_KEY }} | ||
|
||
- name: Git setup | ||
run: . setup/git-setup.sh | ||
|
||
- name: Run docker container | ||
run: docker run --name onnx-runtime --env-file setup/env.list -v ${{ github.workspace }}/results/onnx-runtime/stable:/root/results scoreboard/onnx || true | ||
|
||
- name: Deploy results | ||
run: . setup/git-deploy-results.sh | ||
|
||
|
||
onnxruntime_dev: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 90 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build docker image | ||
run: docker build -t scoreboard/ort-dev -f runtimes/onnx-runtime/development/Dockerfile . | ||
|
||
- name: Set up SSH | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.DEPLOY_KEY }} | ||
|
||
- name: Git setup | ||
run: . setup/git-setup.sh | ||
|
||
- name: Run docker container | ||
run: docker run --name onnx-runtime --env-file setup/env.list -v ${{ github.workspace }}/results/onnx-runtime/development:/root/results scoreboard/ort-dev || true | ||
|
||
- name: Deploy results | ||
run: . setup/git-deploy-results.sh | ||
|
||
|
||
onnx_tf_stable: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 90 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build docker image | ||
run: docker build -t scoreboard/onnxtf -f runtimes/onnx-tf/stable/Dockerfile . | ||
|
||
- name: Set up SSH | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.DEPLOY_KEY }} | ||
|
||
- name: Git setup | ||
run: . setup/git-setup.sh | ||
|
||
- name: Run docker container | ||
run: docker run --name onnxtf --env-file setup/env.list -v ${{ github.workspace }}/results/onnx-tf/stable:/root/results scoreboard/onnxtf || true | ||
|
||
- name: Deploy results | ||
run: . setup/git-deploy-results.sh | ||
|
||
|
||
onnx_tf_dev: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 90 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build docker image | ||
run: docker build -t scoreboard/onnxtf-dev -f runtimes/onnx-tf/development/Dockerfile . | ||
|
||
- name: Set up SSH | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.DEPLOY_KEY }} | ||
|
||
- name: Git setup | ||
run: . setup/git-setup.sh | ||
|
||
- name: Run docker container | ||
run: docker run --name onnxtf --env-file setup/env.list -v ${{ github.workspace }}/results/onnx-tf/development:/root/results scoreboard/onnxtf-dev || true | ||
|
||
- name: Deploy results | ||
run: . setup/git-deploy-results.sh | ||
|
||
|
||
jaxonnxruntime_stable: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 90 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build docker image | ||
run: docker build -t scoreboard/jaxonnxruntime -f runtimes/jaxonnxruntime/stable/Dockerfile . | ||
|
||
- name: Set up SSH | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.DEPLOY_KEY }} | ||
|
||
- name: Git setup | ||
run: . setup/git-setup.sh | ||
|
||
- name: Run docker container | ||
run: docker run --name jaxonnxruntime --env-file setup/env.list -v ${{ github.workspace }}/results/jaxonnxruntime/stable:/root/results scoreboard/jaxonnxruntime || true | ||
|
||
- name: Deploy results | ||
run: . setup/git-deploy-results.sh | ||
|
||
jaxonnxruntime_dev: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 90 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: true | ||
fetch-depth: 0 | ||
clean: true | ||
|
||
- name: Build docker image | ||
run: docker build -t scoreboard/jaxonnxruntime-dev -f runtimes/jaxonnxruntime/development/Dockerfile . | ||
|
||
- name: Set up SSH | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.DEPLOY_KEY }} | ||
|
||
- name: Git setup | ||
run: . setup/git-setup.sh | ||
|
||
- name: Run docker container | ||
run: docker run --name jaxonnxruntime --env-file setup/env.list -v ${{ github.workspace }}/results/jaxonnxruntime/development:/root/results scoreboard/jaxonnxruntime-dev || true | ||
|
||
- name: Deploy results | ||
run: . setup/git-deploy-results.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Website Update | ||
|
||
on: | ||
schedule: | ||
- cron: '0 6 * * *' | ||
|
||
jobs: | ||
generate_website: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
clean: true | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install --upgrade pip | ||
pip install --upgrade -r requirements_web.txt | ||
|
||
- name: Set up SSH | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: | | ||
${{ secrets.DEPLOY_KEY }} | ||
|
||
- name: Git setup | ||
run: . setup/git-setup.sh | ||
|
||
- name: Generate website | ||
run: python3 website-generator/generator.py --config ./setup/config.json | ||
|
||
- name: Deploy website | ||
run: . setup/git-deploy-website.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,37 +49,40 @@ For `development` version the `core_packages` list is optional: | |
} | ||
``` | ||
|
||
### 3. Add new job to Azure pipelines | ||
### 3. Add new job to GitHub Actions workflow | ||
|
||
* Edit [azure-pipelines.yml](azure-pipelines.yml) file. | ||
* Edit [benchmark-backends.yml](.github/workflows/benchmark-backends.yml) file. | ||
* Copy and paste this [job template](examples/job.yml) to the end of file. | ||
* Fill `new_backend` with the new backend unique name. | ||
* Change the `docker build` and `docker run` commands to match your backend. | ||
|
||
```yml | ||
|
||
- job: new_backend | ||
timeoutInMinutes: 90 | ||
steps: | ||
- checkout: self | ||
persistCredentials: true | ||
clean: true | ||
jobs: | ||
... # other jobs | ||
|
||
- task: InstallSSHKey@0 | ||
inputs: | ||
knownHostsEntry: ~/.ssh/known_hosts | ||
sshPublicKey: $(public_deploy_key) | ||
sshKeySecureFile: deploy_key | ||
new_backend: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 90 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- script: docker build -t scoreboard/new_backend -f runtimes/new_backend/stable/Dockerfile . | ||
displayName: 'Build docker image' | ||
- name: Build docker image | ||
run: docker build -t scoreboard/new_backend -f runtimes/new_backend/stable/Dockerfile . | ||
|
||
- script: . setup/git-setup.sh | ||
displayName: 'Git setup' | ||
- name: Set up SSH | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: | | ||
${{ secrets.DEPLOY_KEY }} | ||
|
||
- script: docker run --name new_backend --env-file setup/env.list -v `pwd`/results/new_backend/stable:/root/results scoreboard/new_backend || true | ||
displayName: 'Run docker container' | ||
- name: Git setup | ||
run: . setup/git-setup.sh | ||
|
||
- script: . setup/git-deploy-results.sh | ||
displayName: 'Deploy results' | ||
- name: Run docker container | ||
run: docker run --name new_backend --env-file setup/env.list -v `pwd`/results/new_backend/stable:/root/results scoreboard/new_backend || true | ||
|
||
- name: Deploy results | ||
run: . setup/git-deploy-results.sh | ||
``` |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can it be updated to the
v4
for all of the jobs in this file?