mirror of https://github.com/lnis-uofu/SOFA.git
[Actions] Testing docker run with memory option
This commit is contained in:
parent
3f8a9ee1fe
commit
fc11e98efd
|
@ -1,13 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
SCAN_SOFA_HD_KEY="FPGA1212_FLAT_HD_SKY_PNR"
|
SCAN_SOFA_HD_KEY="FPGA1212_SOFA_HD_PNR"
|
||||||
SCAN_QLSOFA_HD_KEY="FPGA1212_RESET_HD_SKY_PNR"
|
SCAN_QLSOFA_HD_KEY="FPGA1212_QLSOFA_HD_PNR"
|
||||||
SCAN_SOFA_CHD_KEY="FPGA1212_SOFA_CHD_PNR"
|
SCAN_SOFA_CHD_KEY="FPGA1212_SOFA_CHD_PNR"
|
||||||
SCAN_QLAP3_KEY="FPGA1212_QLAP3_PNR"
|
SCAN_QLAP3_KEY="FPGA1212_QLAP3_PNR"
|
||||||
|
|
||||||
# TODO: Strip comments while reading using yq
|
# TODO: Strip comments while reading using yq
|
||||||
# TODO: Add SOFA_CHD and QLAP3 for later
|
# TODO: Add SOFA_CHD and QLAP3 for later
|
||||||
for repo in SOFA_HD QLSOFA_HD ; do
|
for repo in SOFA_HD ; do
|
||||||
ScanDir=$(eval "echo \$SCAN_${repo}_KEY")
|
ScanDir=$(eval "echo \$SCAN_${repo}_KEY")
|
||||||
action_filename=$(echo "$repo" | awk '{print tolower($0)}')
|
action_filename=$(echo "$repo" | awk '{print tolower($0)}')
|
||||||
repo_name=$(echo "$repo" | sed "s/_/-/")
|
repo_name=$(echo "$repo" | sed "s/_/-/")
|
||||||
|
|
|
@ -64,6 +64,8 @@ jobs:
|
||||||
-e DEST_DIR=$DEST_DIR
|
-e DEST_DIR=$DEST_DIR
|
||||||
-e SCAN_DIRECTORY=$SCAN_DIRECTORY
|
-e SCAN_DIRECTORY=$SCAN_DIRECTORY
|
||||||
--workdir /usr/local/workspace
|
--workdir /usr/local/workspace
|
||||||
|
--memory 2g
|
||||||
|
--memory-swap 4g
|
||||||
run: cd /usr/local/workspace && pwd && ls && bash ./SOFA-Chips/.github/workflows/perform_precheck.sh
|
run: cd /usr/local/workspace && pwd && ls && bash ./SOFA-Chips/.github/workflows/perform_precheck.sh
|
||||||
|
|
||||||
- name: Deploy files
|
- name: Deploy files
|
||||||
|
|
|
@ -0,0 +1,68 @@
|
||||||
|
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_SOFA_HD_PNR/**'
|
||||||
|
PROJ_SUFFIX: SOFA_HD
|
||||||
|
DEST_DIR: Caravel-SOFA-HD
|
||||||
|
DEST_REPO: lnis-uofu/Caravel-SOFA-HD
|
||||||
|
REPO_KEY: ${{ secrets.SOFA_HD_KEY }}
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- '.github/**'
|
||||||
|
- 'SynRepoConfig/**'
|
||||||
|
- '$SCAN_DIRECTORY'
|
||||||
|
branches:
|
||||||
|
- ganesh_dev
|
||||||
|
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/Caravel-SOFA-HD
|
||||||
|
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: ganeshgore/docker-run-action@49cd3a1
|
||||||
|
with:
|
||||||
|
image: goreganesh/open_mpw_prechecker
|
||||||
|
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 --workdir /usr/local/workspace --memory 2g --memory-swap 4g
|
||||||
|
|
||||||
|
run: cd /usr/local/workspace && pwd && ls && bash ./SOFA-Chips/.github/workflows/perform_precheck.sh
|
||||||
|
- name: Deploy files
|
||||||
|
# if: ${{ github.event_name == 'pull_request' && contains(github.ref, "master") && github.event.action == 'merged' }}
|
||||||
|
run: bash ./SOFA-Chips/.github/workflows/sync_repo.sh
|
||||||
|
- name: Deploy Changes
|
||||||
|
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"
|
||||||
|
deploy_key: ${{ secrets.SOFA_HD_KEY }}
|
||||||
|
external_repository: lnis-uofu/Caravel-SOFA-HD
|
||||||
|
publish_dir: Caravel-SOFA-HD
|
||||||
|
publish_branch: master
|
||||||
|
disable_nojekyll: true
|
||||||
|
commit_message: '[Deployment] ${{ github.event.head_commit.message }}'
|
Loading…
Reference in New Issue