test ci workflow #37
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
name: Build VENTUS | ||
env: | ||
POCL: pocl | ||
OCL_ICD: ocl-icd | ||
RODINIA: gpu-rodinia | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
schedule: | ||
- cron: '0 2 * * *' # Runs at 2am everyday | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: self-hosted | ||
steps: | ||
- name: Checkout CI_repo | ||
uses: actions/checkout@v4 | ||
path: test_rep_ci | ||
- name: Use Node.js 16.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Install Ninja | ||
uses: llvm/actions/install-ninja@main | ||
- name: Install Other needed packages # maybe install llvm release is a better choice | ||
run: | | ||
sudo apt-get install -y \ | ||
device-tree-compiler \ | ||
bsdmainutils \ | ||
ccache | ||
- name: List files in workspace | ||
run: ls ${{ github.workspace }} | ||
- name: Create a new file in workspace | ||
run: echo "Hello World" > ${{ github.workspace }}/newfile.txt | ||
- name: checkout pocl | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: THU-DSP-LAB/pocl | ||
path: $POCL | ||
- name: checkout ocl-icd | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: OCL-dev/ocl-icd | ||
path: $OCL_ICD | ||
- name: checkout rodinia | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: THU-DSP-LAB/gpu-rodinia | ||
path: $RODINIA | ||
- name: download data | ||
run: | | ||
wget -P ${{github.workspace}}/$RODINIA -c https://www.dropbox.com/s/cc6cozpboht3mtu/rodinia-3.1-data.tar.gz | ||
tar -zxvf ${{github.workspace}}/$RODINIA/rodinia-3.1-data.tar.gz -C ${{github.workspace}}/$RODINIA | ||
mv ${{github.workspace}}/$RODINIA/rodinia-data/* ${{github.workspace}}/$RODINIA/data/ | ||
rm ${{github.workspace}}/$RODINIA/rodinia-3.1-data.tar.gz | ||
rm ${{github.workspace}}/$RODINIA/rodinia-data -rf | ||
- name: test cd repo | ||
run: | | ||
cd $RODINIA | ||
mkdir kl_log | ||
# Later need to add test files and test script for testing | ||
echo "Test files and scripts will be added later" |