forked from f4pga/f4pga-arch-defs
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request f4pga#1719 from antmicro/gh-actions
Initial GH actions activation
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|