Skip to content
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

Add riscv #919

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions .github/workflows/check-unit-tests-arm.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
# Workflow syntax:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
name: Unit Tests ARM GPUs
# # Workflow syntax:
# # https://help.github.com/en/articles/workflow-syntax-for-github-actions
# name: Unit Tests ARM GPUs

on:
pull_request:
paths-ignore: "docs/**"
# on:
# pull_request:
# paths-ignore: "docs/**"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
# concurrency:
# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
# cancel-in-progress: true

jobs:
unit-tests-llvm-18-release-salami:
runs-on: ARM64
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
submodules: 'recursive'
- name: Run unit test checking script
run: ./scripts/unit_tests.sh release llvm-18
shell: bash
# jobs:
# unit-tests-llvm-18-release-salami:
# runs-on: ARM64
# steps:
# - uses: actions/checkout@v3
# with:
# ref: ${{ github.event.pull_request.head.sha }}
# fetch-depth: 0
# submodules: 'recursive'
# - name: Run unit test checking script
# run: ./scripts/unit_tests.sh release llvm-18
# shell: bash
196 changes: 98 additions & 98 deletions .github/workflows/check-unit-tests-intel.yml
Original file line number Diff line number Diff line change
@@ -1,101 +1,101 @@
# Workflow syntax:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
name: Unit Tests Intel GPUs
# # Workflow syntax:
# # https://help.github.com/en/articles/workflow-syntax-for-github-actions
# name: Unit Tests Intel GPUs

on:
pull_request:
paths-ignore: "docs/**"
# on:
# pull_request:
# paths-ignore: "docs/**"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
# concurrency:
# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
# cancel-in-progress: true

jobs:
unit-tests-llvm-16-debug:
runs-on: X64
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
submodules: 'recursive'
- name: Run unit test checking script
run: ./scripts/unit_tests.sh debug llvm-16
shell: bash
unit-tests-llvm-16-release:
runs-on: X64
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
submodules: 'recursive'
- name: Run unit test checking script
run: ./scripts/unit_tests.sh release llvm-16
shell: bash
unit-tests-llvm-17-debug:
runs-on: X64
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
submodules: 'recursive'
- name: Run unit test checking script
run: ./scripts/unit_tests.sh debug llvm-17
shell: bash
unit-tests-llvm-17-release:
runs-on: X64
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
submodules: 'recursive'
- name: Run unit test checking script
run: ./scripts/unit_tests.sh release llvm-17
shell: bash
unit-tests-llvm-18-debug:
runs-on: X64
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
submodules: 'recursive'
- name: Run unit test checking script
run: ./scripts/unit_tests.sh debug llvm-18
shell: bash
unit-tests-llvm-18-release:
runs-on: X64
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
submodules: 'recursive'
- name: Run unit test checking script
run: ./scripts/unit_tests.sh release llvm-18
shell: bash
unit-tests-llvm-19-debug:
runs-on: X64
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
submodules: 'recursive'
- name: Run unit test checking script
run: ./scripts/unit_tests.sh debug llvm-19
shell: bash
unit-tests-llvm-19-release:
runs-on: X64
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
submodules: 'recursive'
- name: Run unit test checking script
run: ./scripts/unit_tests.sh release llvm-19
shell: bash
# jobs:
# unit-tests-llvm-16-debug:
# runs-on: X64
# steps:
# - uses: actions/checkout@v3
# with:
# ref: ${{ github.event.pull_request.head.sha }}
# fetch-depth: 0
# submodules: 'recursive'
# - name: Run unit test checking script
# run: ./scripts/unit_tests.sh debug llvm-16
# shell: bash
# unit-tests-llvm-16-release:
# runs-on: X64
# steps:
# - uses: actions/checkout@v3
# with:
# ref: ${{ github.event.pull_request.head.sha }}
# fetch-depth: 0
# submodules: 'recursive'
# - name: Run unit test checking script
# run: ./scripts/unit_tests.sh release llvm-16
# shell: bash
# unit-tests-llvm-17-debug:
# runs-on: X64
# steps:
# - uses: actions/checkout@v3
# with:
# ref: ${{ github.event.pull_request.head.sha }}
# fetch-depth: 0
# submodules: 'recursive'
# - name: Run unit test checking script
# run: ./scripts/unit_tests.sh debug llvm-17
# shell: bash
# unit-tests-llvm-17-release:
# runs-on: X64
# steps:
# - uses: actions/checkout@v3
# with:
# ref: ${{ github.event.pull_request.head.sha }}
# fetch-depth: 0
# submodules: 'recursive'
# - name: Run unit test checking script
# run: ./scripts/unit_tests.sh release llvm-17
# shell: bash
# unit-tests-llvm-18-debug:
# runs-on: X64
# steps:
# - uses: actions/checkout@v3
# with:
# ref: ${{ github.event.pull_request.head.sha }}
# fetch-depth: 0
# submodules: 'recursive'
# - name: Run unit test checking script
# run: ./scripts/unit_tests.sh debug llvm-18
# shell: bash
# unit-tests-llvm-18-release:
# runs-on: X64
# steps:
# - uses: actions/checkout@v3
# with:
# ref: ${{ github.event.pull_request.head.sha }}
# fetch-depth: 0
# submodules: 'recursive'
# - name: Run unit test checking script
# run: ./scripts/unit_tests.sh release llvm-18
# shell: bash
# unit-tests-llvm-19-debug:
# runs-on: X64
# steps:
# - uses: actions/checkout@v3
# with:
# ref: ${{ github.event.pull_request.head.sha }}
# fetch-depth: 0
# submodules: 'recursive'
# - name: Run unit test checking script
# run: ./scripts/unit_tests.sh debug llvm-19
# shell: bash
# unit-tests-llvm-19-release:
# runs-on: X64
# steps:
# - uses: actions/checkout@v3
# with:
# ref: ${{ github.event.pull_request.head.sha }}
# fetch-depth: 0
# submodules: 'recursive'
# - name: Run unit test checking script
# run: ./scripts/unit_tests.sh release llvm-19
# shell: bash
25 changes: 25 additions & 0 deletions .github/workflows/check-unit-tests-riscv.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Workflow syntax:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
name: Unit Tests RISC-V GPUs

on:
pull_request:
paths-ignore: "docs/**"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
unit-tests-llvm-18-release-macaroni:
runs-on: X64 # TODO: Add RISCV64 once runner is supported
steps:
- name: Run unit tests on RISC-V machine
run: |
ssh macaroni << EOF
cd ~/chipStar
git fetch origin
git checkout ${{ github.event.pull_request.head.sha }}
bash -x ./scripts/unit_tests.sh release llvm-18
EOF
shell: bash
72 changes: 36 additions & 36 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
name: Docker Build and Publish
# name: Docker Build and Publish

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# on:
# push:
# branches: [ main ]
# pull_request:
# branches: [ main ]

jobs:
docker:
runs-on: [self-hosted, Linux, X64]
steps:
- uses: actions/checkout@v3
# jobs:
# docker:
# runs-on: [self-hosted, Linux, X64]
# steps:
# - uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: Login to DockerHub
# if: github.event_name == 'push' && github.ref == 'refs/heads/main'
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
file: ./docker/DockerfileLatest
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
tags: pveleskopglc/chipstar:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
# - name: Build and push Docker image
# uses: docker/build-push-action@v4
# with:
# context: .
# file: ./docker/DockerfileLatest
# push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
# tags: pveleskopglc/chipstar:latest
# cache-from: type=local,src=/tmp/.buildx-cache
# cache-to: type=local,dest=/tmp/.buildx-cache

cleanup:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: [docker]
runs-on: [self-hosted, Linux, X64]
steps:
- name: Clean up old Docker images
run: |
docker image prune -af
# cleanup:
# if: github.event_name == 'push' && github.ref == 'refs/heads/main'
# needs: [docker]
# runs-on: [self-hosted, Linux, X64]
# steps:
# - name: Clean up old Docker images
# run: |
# docker image prune -af
Loading