2020-12-04 12:46:30 -06:00
|
|
|
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
|
2020-12-08 12:31:04 -06:00
|
|
|
Caravel-SOFA-HD
|
2020-12-04 12:46:30 -06:00
|
|
|
DEST_REPO: &DEST_REPO
|
2020-12-08 11:24:54 -06:00
|
|
|
lnis-uofu/Caravel-SOFA-HD
|
2020-12-04 12:46:30 -06:00
|
|
|
REPO_KEY: &REPO_KEY
|
2020-12-08 11:24:54 -06:00
|
|
|
${{ secrets.SOFA_HD_KEY }}
|
2020-12-17 16:01:49 -06:00
|
|
|
CARAVEL_COMPARE_COMMIT: &CARAVEL_COMPARE_COMMIT
|
|
|
|
f48448d4736bd6d56fed4dbf7f9cc50552d8745d
|
2020-12-04 12:46:30 -06:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- '.github/**'
|
2020-12-04 16:25:50 -06:00
|
|
|
- 'SynRepoConfig/**'
|
2020-12-04 12:46:30 -06:00
|
|
|
- '$SCAN_DIRECTORY'
|
2020-12-08 11:24:54 -06:00
|
|
|
branches:
|
|
|
|
- ganesh_dev
|
2020-12-04 12:46:30 -06:00
|
|
|
pull_request:
|
|
|
|
types: closed
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
jobs:
|
|
|
|
linux:
|
|
|
|
name: Updating release repository
|
2020-12-14 17:30:51 -06:00
|
|
|
runs-on: ubuntu-latest
|
2020-12-04 12:46:30 -06:00
|
|
|
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
|
2020-12-06 02:53:21 -06:00
|
|
|
uses: ganeshgore/docker-run-action@49cd3a1
|
2020-12-04 12:46:30 -06:00
|
|
|
with:
|
|
|
|
image: goreganesh/open_mpw_prechecker
|
2020-12-05 20:31:32 -06:00
|
|
|
options: >
|
|
|
|
-v ${{github.workspace}}/open_mpw_precheck:/usr/local/bin
|
|
|
|
-v ${{github.workspace}}:/usr/local/workspace
|
|
|
|
-e DEST_DIR=$DEST_DIR
|
|
|
|
-e SCAN_DIRECTORY=$SCAN_DIRECTORY
|
2020-12-15 23:57:45 -06:00
|
|
|
-e PRECHECKER_OPTS="--skip_drc"
|
2020-12-05 20:31:32 -06:00
|
|
|
--workdir /usr/local/workspace
|
2020-12-06 02:53:21 -06:00
|
|
|
run: cd /usr/local/workspace && pwd && ls && bash ./SOFA-Chips/.github/workflows/perform_precheck.sh
|
2020-12-04 12:46:30 -06:00
|
|
|
|
|
|
|
- name: Deploy files
|
|
|
|
run: bash ./SOFA-Chips/.github/workflows/sync_repo.sh
|
|
|
|
|
2020-12-17 16:01:49 -06:00
|
|
|
- name: Local log
|
|
|
|
if: ${{ github.event_name == 'pull_request' && contains(github.ref, "master") && github.event.action == 'merged' }}
|
|
|
|
run:
|
|
|
|
git status
|
2020-12-08 12:31:04 -06:00
|
|
|
|
2020-12-17 16:01:49 -06:00
|
|
|
# - name: Deploy Changes localbranch
|
2020-12-08 12:31:04 -06:00
|
|
|
# uses: peaceiris/actions-gh-pages@v3
|
|
|
|
# if: ${{! (github.event_name == 'pull_request' && contains(github.ref, "master") && github.event.action == 'merged') }}
|
|
|
|
# with:
|
|
|
|
# user_name: "lnis.uofu"
|
|
|
|
# user_email: "lnis.uofu@gmail.com"
|
|
|
|
# github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
# publish_dir: ./SOFA-Chips/local_checks/Caravel-SOFA_HD
|
|
|
|
# publish_branch: master
|
|
|
|
# disable_nojekyll: true
|
|
|
|
# commit_message: '[Deployment] ${{ github.event.head_commit.message }}'
|