Skip to content

Commit

Permalink
Merge pull request f4pga#1719 from antmicro/gh-actions
Browse files Browse the repository at this point in the history
Initial GH actions activation
  • Loading branch information
mithro committed Oct 31, 2020
2 parents 0d6b611 + bd2ac17 commit c5ca998
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/checkstatus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Check all tests

on:
status:

jobs:
Check-statuses:
runs-on: ubuntu-latest

steps:
- name: Check status
run: |
curl -s --url https://api.github.com/repos/${{ github.repository }}/commits/${{ github.event.sha }}/status \
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' | head -n 2 | tail -n 1 | grep "success"
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install STDM
run: pip install git+https://github.com/SymbiFlow/symbiflow-tools-data-manager#egg=stdm
- name: Get latest artifact name
run: mkdir install && get_latest_artifact_url > install/latest
- name: Upload artifact URL file
uses: weslenng/gcp-storage-sync@master
env:
GCP_SERVICE_ACCOUNT_KEY_FILE: ${{ secrets.GCP_SERVICE_ACCOUNT_KEY_FILE }}
GCP_STORAGE_BUCKET: ${{ secrets.GCP_STORAGE_BUCKET }}
SOURCE_DIR: "install"

0 comments on commit c5ca998

Please sign in to comment.