Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
eq19 committed Nov 24, 2024
1 parent e9298c2 commit 647b669
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/actions/2-multiplication/2-feed/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ runs:
id: variables
shell: bash
run: |
brew install --quiet mosh pandoc
brew install --quiet mosh pandoc doxygen
IFS=', '; array=($(curl -L -s 'https://registry.hub.docker.com/v2/repositories/${{ inputs.image_name }}/tags?page_size=1024' | jq -rc '."results"[]["name"]' | yq eval -P | sed "s/ /, /g"))
for ((i=0; i < ${#array[@]}; i++)); do
if [[ "${array[$i]}" != "latest" ]]; then
Expand Down
14 changes: 10 additions & 4 deletions .github/actions/2-multiplication/3-lexer/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,17 @@ runs:
CPPFLAGS: "-I/opt/homebrew/opt/qt@5/include"
PKG_CONFIG_PATH: "/opt/homebrew/opt/qt@5/lib/pkgconfig"
run: |
ssh-keygen -t rsa -b 3072 -N '' -f $HOME/.ssh/google_compute_engine -C root
sed -i.backup "1s|^|runner: |" $HOME/.ssh/google_compute_engine.pub && gh secret set GCP_ID_RSA < $HOME/.ssh/google_compute_engine
cd ${{ inputs.action_path }} && doxygen > /dev/null 2>&1
rm -rf ${{ github.workspace }}/xml && mv -f xml ${{ github.workspace }}/
gcloud compute instances add-metadata grid-${{ env.IMAGE_TAG }} --zone=us-central1-a --metadata-from-file ssh-keys=$HOME/.ssh/google_compute_engine.pub
gcloud compute instances describe grid-${{ env.IMAGE_TAG }} --zone=us-central1-a --format='value(metadata.items)'
cd ${{ github.workspace }} && rm -rf cloud-config
git add . && git commit --allow-empty -m ${{ env.LATEST_COMMIT }} && git push
#ssh-keygen -t rsa -b 3072 -N '' -f $HOME/.ssh/google_compute_engine -C root
#sed -i.backup "1s|^|runner: |" $HOME/.ssh/google_compute_engine.pub && gh secret set GCP_ID_RSA < $HOME/.ssh/google_compute_engine
#gcloud compute instances add-metadata grid-${{ env.IMAGE_TAG }} --zone=us-central1-a --metadata-from-file ssh-keys=$HOME/.ssh/google_compute_engine.pub
#gcloud compute instances describe grid-${{ env.IMAGE_TAG }} --zone=us-central1-a --format='value(metadata.items)'
#gcloud compute scp ${{ github.workspace }}/.github/entrypoint/artifact/python/manual_v2.ipynb grid-${{ env.IMAGE_TAG }}:/home/runner/.docker --zone=us-central1-a
echo $(gcloud compute instances describe grid-${{ env.IMAGE_TAG }} --zone=us-central1-a --format json) > instance
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/3-exponentiation/5-syntax/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ runs:
REDIS_HOST: 172.17.0.1
shell: bash
run: |
node /home/runner/scripts/main.js --output=/home/runner/templates/doxygen/doc/api-%s.md /home/runner/xml
node /home/runner/scripts/main.js --output=/home/runner/templates/doxygen/doc/api-%s.md xml
echo '${{ inputs.pauli_sum }}'
- name: 💎 Connect to postgres
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/3-exponentiation/6-grammar/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ runs:
cd ${{ inputs.runner_temp }}/wiki
cat _Sidebar.md
ls -alR /home/runner/xml
ls -alR /home/runner/templates/doxygen/doc
#ls -alR /home/runner/xml
#ls -alR /home/runner/templates/doxygen/doc
fi

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,6 @@ jobs:
function: ${{ steps.set-lexering.outputs.function }}

parsering:
needs: lexering
continue-on-error: true
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
Expand All @@ -129,9 +126,12 @@ jobs:
PASS: ${{ contains(needs.*.result, 'success') && true || false }}

# ✔️ Completeness status
needs: lexering
runs-on: ${{ matrix.config.os }}
if: ${{ (always() && contains(needs.*.result, 'success')) ||
(failure() && contains(needs.*.result, 'failure')) }}

continue-on-error: ${{ matrix.config.id == 3 && true || false }}

steps:
- name: 📂 Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 647b669

Please sign in to comment.