mirror of https://github.com/lnis-uofu/SOFA.git
[Action] Changed Docker workdir
This commit is contained in:
parent
cfa2bb96c4
commit
2bada6124f
|
@ -0,0 +1,74 @@
|
||||||
|
name: Caravel-SOFA_HD Deployment
|
||||||
|
|
||||||
|
# = = = Env Variable = = = = =
|
||||||
|
# secrets.TEST_REPO_KEY
|
||||||
|
# secrets.SOFA_HD_KEY
|
||||||
|
# secrets.SOFA_CHD_KEY
|
||||||
|
# secrets.QLSOFA_HD_KEY
|
||||||
|
# secrets.QLAP3_KEY
|
||||||
|
# yq r -X deploy_sofa.yaml > ./workflows/deploy_sofa_hd.yaml
|
||||||
|
|
||||||
|
env:
|
||||||
|
SCAN_DIRECTORY: &SCAN_DIRECTORY
|
||||||
|
'FPGA1212_FLAT_HD_SKY_PNR/**'
|
||||||
|
PROJ_SUFFIX: &PROJ_SUFFIX
|
||||||
|
SOFA_HD
|
||||||
|
DEST_DIR: &DEST_DIR
|
||||||
|
Caravel-SOFA_HD
|
||||||
|
DEST_REPO: &DEST_REPO
|
||||||
|
lnis-uofu/actions_test_repo
|
||||||
|
REPO_KEY: &REPO_KEY
|
||||||
|
${{ secrets.TEST_REPO_KEY }}
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- '.github/**'
|
||||||
|
- '$SCAN_DIRECTORY'
|
||||||
|
pull_request:
|
||||||
|
types: closed
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
linux:
|
||||||
|
name: Updating release repository
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout SOFA-Chips
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: SOFA-Chips
|
||||||
|
|
||||||
|
- name: Checkout caravel repo
|
||||||
|
uses: actions/checkout@master
|
||||||
|
with:
|
||||||
|
repository: *DEST_REPO
|
||||||
|
path: *DEST_DIR
|
||||||
|
|
||||||
|
- name: Checkout open_mpw_precheck repo
|
||||||
|
uses: actions/checkout@master
|
||||||
|
with:
|
||||||
|
repository: efabless/open_mpw_precheck
|
||||||
|
path: open_mpw_precheck
|
||||||
|
|
||||||
|
- name: Perform checks with open_mpw_precheck
|
||||||
|
uses: addnab/docker-run-action@v1
|
||||||
|
with:
|
||||||
|
image: goreganesh/open_mpw_prechecker
|
||||||
|
options: -v ${{github.workspace}}:/usr/local/workspace -w /usr/local/workspace
|
||||||
|
run: bash ./SOFA-Chips/.github/workflows/perform_precheck.sh
|
||||||
|
|
||||||
|
- name: Deploy files
|
||||||
|
run: bash ./SOFA-Chips/.github/workflows/sync_repo.sh
|
||||||
|
|
||||||
|
- name: Deploy Changes
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
user_name: "lnis.uofu"
|
||||||
|
user_email: "lnis.uofu@gmail.com"
|
||||||
|
deploy_key: *REPO_KEY
|
||||||
|
external_repository: *DEST_REPO
|
||||||
|
publish_dir: *DEST_DIR
|
||||||
|
publish_branch: master
|
||||||
|
disable_nojekyll: true
|
||||||
|
commit_message: '[Deployment] ${{ github.event.head_commit.message }}'
|
|
@ -1,51 +0,0 @@
|
||||||
name: To perform precheck and deploy to release repository
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
pull_request:
|
|
||||||
types: closed
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
jobs:
|
|
||||||
linux:
|
|
||||||
name: Updating release repository
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout SOFA-Chips
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
path: SOFA-Chips
|
|
||||||
|
|
||||||
- name: Checkout Caravel-SOFA-HD
|
|
||||||
uses: actions/checkout@master
|
|
||||||
with:
|
|
||||||
repository: lnis-uofu/actions_test_repo
|
|
||||||
path: Caravel-SOFA-HD
|
|
||||||
|
|
||||||
- name: Where am I
|
|
||||||
uses: addnab/docker-run-action@v1
|
|
||||||
with:
|
|
||||||
image: goreganesh/open_mpw_prechecker
|
|
||||||
options: -v ${{github.workspace}}:/usr/local/workspace
|
|
||||||
run: pwd && ls
|
|
||||||
|
|
||||||
- name: Am I in the host container now
|
|
||||||
run: pwd && ls
|
|
||||||
|
|
||||||
- name: Updating files
|
|
||||||
run: pwd && ls && cd SOFA-Chips && source ./.github/workflows/sync_repo.sh
|
|
||||||
|
|
||||||
- name: View directory
|
|
||||||
run: pwd && ls
|
|
||||||
|
|
||||||
- name: Deploy Changes
|
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
|
||||||
with:
|
|
||||||
user_name: "lnis.uofu"
|
|
||||||
user_email: "lnis.uofu@gmail.com"
|
|
||||||
deploy_key: ${{ secrets.TEST_REPO_KEY }}
|
|
||||||
external_repository: lnis-uofu/actions_test_repo
|
|
||||||
publish_dir: ./Caravel-SOFA-HD
|
|
||||||
publish_branch: master
|
|
||||||
disable_nojekyll: true
|
|
||||||
commit_message: '[Deployment] ${{ github.event.head_commit.message }}'
|
|
|
@ -0,0 +1,61 @@
|
||||||
|
name: Caravel-SOFA_HD Deployment
|
||||||
|
# = = = Env Variable = = = = =
|
||||||
|
# secrets.TEST_REPO_KEY
|
||||||
|
# secrets.SOFA_HD_KEY
|
||||||
|
# secrets.SOFA_CHD_KEY
|
||||||
|
# secrets.QLSOFA_HD_KEY
|
||||||
|
# secrets.QLAP3_KEY
|
||||||
|
# yq r -X deploy_sofa.yaml > ./workflows/deploy_sofa_hd.yaml
|
||||||
|
env:
|
||||||
|
SCAN_DIRECTORY: 'FPGA1212_FLAT_HD_SKY_PNR/**'
|
||||||
|
PROJ_SUFFIX: SOFA_HD
|
||||||
|
DEST_DIR: Caravel-SOFA_HD
|
||||||
|
DEST_REPO: lnis-uofu/actions_test_repo
|
||||||
|
REPO_KEY: ${{ secrets.TEST_REPO_KEY }}
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- '.github/**'
|
||||||
|
- '$SCAN_DIRECTORY'
|
||||||
|
pull_request:
|
||||||
|
types: closed
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
linux:
|
||||||
|
name: Updating release repository
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout SOFA-Chips
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: SOFA-Chips
|
||||||
|
- name: Checkout caravel repo
|
||||||
|
uses: actions/checkout@master
|
||||||
|
with:
|
||||||
|
repository: lnis-uofu/actions_test_repo
|
||||||
|
path: Caravel-SOFA_HD
|
||||||
|
- name: Checkout open_mpw_precheck repo
|
||||||
|
uses: actions/checkout@master
|
||||||
|
with:
|
||||||
|
repository: efabless/open_mpw_precheck
|
||||||
|
path: open_mpw_precheck
|
||||||
|
- name: Perform checks with open_mpw_precheck
|
||||||
|
uses: addnab/docker-run-action@v1
|
||||||
|
with:
|
||||||
|
image: goreganesh/open_mpw_prechecker
|
||||||
|
options: -v ${{github.workspace}}:/usr/local/workspace -w /usr/local/workspace
|
||||||
|
run: bash ./SOFA-Chips/.github/workflows/perform_precheck.sh
|
||||||
|
- name: Deploy files
|
||||||
|
run: bash ./SOFA-Chips/.github/workflows/sync_repo.sh
|
||||||
|
- name: Deploy Changes
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
user_name: "lnis.uofu"
|
||||||
|
user_email: "lnis.uofu@gmail.com"
|
||||||
|
deploy_key: ${{ secrets.TEST_REPO_KEY }}
|
||||||
|
external_repository: lnis-uofu/actions_test_repo
|
||||||
|
publish_dir: Caravel-SOFA_HD
|
||||||
|
publish_branch: master
|
||||||
|
disable_nojekyll: true
|
||||||
|
commit_message: '[Deployment] ${{ github.event.head_commit.message }}'
|
|
@ -0,0 +1,19 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Working directory in github workspace
|
||||||
|
# Original repo is places ../SOFA-Chips
|
||||||
|
# for conditional file copy use PROJ_SUFFIX (example SOFA_HD)
|
||||||
|
|
||||||
|
echo "============================================="
|
||||||
|
echo " Not Implemented yet "
|
||||||
|
echo "============================================="
|
||||||
|
pwd
|
||||||
|
ls
|
||||||
|
ls */*
|
||||||
|
|
||||||
|
# MAGTYPE=mag magic -rcfile ${PDK_ROOT}/sky130A/libs.tech/magic/current/sky130A.magicrc -noc -dnull merge.tcl
|
||||||
|
|
||||||
|
|
||||||
|
# use fpga_top fpga_top_uut
|
||||||
|
# transform 1 0 0 0 1 0
|
||||||
|
# box 0 0 2500 3000
|
|
@ -1,10 +1,19 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# This script runs after the prechecks and before the deployment
|
||||||
|
# In the host enviroment (All the GITHUB variables are available)
|
||||||
|
|
||||||
date >> ../Caravel-SOFA-HD/test_log_file.txt
|
# Working directory in github workspace
|
||||||
|
# Original repo is places SOFA-Chips
|
||||||
|
# for conditional file copy use PROJ_SUFFIX (example SOFA_HD)
|
||||||
|
|
||||||
|
tail -n +2 ./SOFA-Chips/SynRepoConfig/sync_files.csv | while IFS=, read -r srcLoc dstLoc; do
|
||||||
|
Copying "./SOFA-Chips/$srcLoc --> ${DEST_DIR}/$dstLoc"
|
||||||
|
rsync -avp ./SOFA-Chips/$srcLoc ${DEST_DIR}/$dstLoc
|
||||||
|
done
|
||||||
|
|
||||||
# MAGTYPE=mag magic -rcfile ${PDK_ROOT}/sky130A/libs.tech/magic/current/sky130A.magicrc -noc -dnull merge.tcl
|
cd ${DEST_DIR}
|
||||||
|
|
||||||
|
[ -s source_commit_hash.txt ] || echo "----------" > source_commit_hash.txt
|
||||||
# use fpga_top fpga_top_uut
|
sed -i -e "s/^/\n/" source_commit_hash.txt
|
||||||
# transform 1 0 0 0 1 0
|
sed -i -e "s/^/${GITHUB_SHA}\n/" source_commit_hash.txt
|
||||||
# box 0 0 2500 3000
|
sed -i -e "s/^/$(date)\n/" source_commit_hash.txt
|
||||||
|
|
|
@ -42,4 +42,4 @@ Otherwise, you should provide full path using the option _--openfpga\_root\_path
|
||||||
* Note:
|
* Note:
|
||||||
- Please **ONLY** place folders under this directory.
|
- Please **ONLY** place folders under this directory.
|
||||||
README should be the **ONLY** file under this directory
|
README should be the **ONLY** file under this directory
|
||||||
- Each EDA tool should have **independent** workspace in separated directories
|
- Each EDA tool should have **independent** workspace in separated directories.
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
SrcLoc, DestLoc
|
||||||
|
FPGA1212_FLAT_HD_SKY_PNR/FPGA1212_FLAT_HD_SKY_task/,OpenFPGA_task
|
|
Loading…
Reference in New Issue