-
Notifications
You must be signed in to change notification settings - Fork 5
59 lines (49 loc) · 1.37 KB
/
release.ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Copyright (C) 2020-2021 The SymbiFlow Authors.
#
# Use of this source code is governed by a ISC-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/ISC
#
# SPDX-License-Identifier:ISC
#
name: CI artifacts generation
on:
push:
tags:
- 'v*'
jobs:
Run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: SymbiFlow/actions/checks@main
- name: Install Dependencies
run: |
sudo apt update
sudo apt install -y bzip2 make u-boot-tools
- name: Build Images
run: |
source .github/scripts/ci.sh
zip -r uboot-linux-images.zip root boot
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release xc7 automatic tester
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./uboot-linux-images.zip
asset_name: uboot-linux-images.zip
asset_content_type: application/zip