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

DRAFT: Create OCK artifacts #252

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
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
93 changes: 93 additions & 0 deletions .github/workflows/create_publish_artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: Build and Package
on:
pull_request:
paths:
- '.github/workflows/create_publish_artifacts.yml'
schedule:
- cron: '0 0 * * *' # Runs the workflow at midnight every day
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

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

jobs:

# build and run for RISCV
run_riscv_m1_tartan:
runs-on: ubuntu-22.04

steps:
- name: Checkout repo
uses: actions/checkout@v3

# installs tools, ninja, installs llvm and sets up sccahe
- name: setup ubuntu
uses: ./.github/actions/setup_ubuntu_build
with:
llvm_version: 17
llvm_build_type: RelAssert

- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.8'

- name: Install Python libraries and system dependencies
run: |
pip install requests numpy h5py Pillow
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install -y libblas-dev libopenblas64-dev libopenblas-dev libpthread-stubs0-dev libboost-all-dev

- name: build riscv M1
uses: ./.github/actions/do_build_ock/do_build_m1

- name: Download Daily Release
run: |
wget "https://github.com/intel/llvm/releases/download/nightly-2023-11-22/sycl_linux.tar.gz"
mkdir linux_nightly_release
tar -xzf sycl_linux.tar.gz -C linux_nightly_release
ls

- name: Package Artifacts
run: |
ls
# Create a directory for artifacts
mkdir artifacts

# Copy binaries to the artifacts directory
cp -rf $(pwd)/build artifacts/
cp -rf $(pwd)/linux_nightly_release artifacts/

- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: riscv-build
path: artifacts
# Create a ZIP archive
# zip -r artifacts.zip artifacts

#ls
build_portBLAS:
runs-on: ubuntu-22.04
needs: run_riscv_m1_tartan
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Download Daily Release
run: |
wget "https://github.com/intel/llvm/releases/download/nightly-2023-11-22/sycl_linux.tar.gz"
mkdir linux_nightly_release
tar -xzf sycl_linux.tar.gz -C linux_nightly_release
ls
- name: Download Artifacts
uses: actions/download-artifact@v2
with:
name: riscv-build
path: artifacts
- name: Build portBLAS
uses: ./.github/actions/build_portBLAS_action
with:
workspace: ${{ github.workspace }}
Loading