-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (47 loc) · 1.85 KB
/
compilation.yml
File metadata and controls
58 lines (47 loc) · 1.85 KB
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
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
pull_request:
repository_dispatch:
types: [run_build, run_release, run_build_libs_gen, run_release_libs_gen, run_build_headers, run_release_headers, run_build_musl, run_release_musl]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Install ninja-build texinfo bison flex findutils
run: |
sudo apt-get update
sudo apt-get -y install ninja-build texinfo bison flex findutils
- name: Runs all the stages in the shell
run: |
sudo ./build.sh
- name: Get short SHA
id: slug
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
- name: Compress Folder
run: |
tar cvf orbisdev_sysroot-${{ steps.slug.outputs.sha8 }}.tar usr
cp orbisdev_sysroot-${{ steps.slug.outputs.sha8 }}.tar orbisdev_sysroot.tar
- name: Upload artifacts
if: ${{ success() }}
uses: actions/upload-artifact@v2
with:
name: orbisdev_sysroot-${{ steps.slug.outputs.sha8 }}
path: orbisdev_sysroot-${{ steps.slug.outputs.sha8 }}.tar
- name: Create pre-release
if: github.ref == 'refs/heads/master'
uses: softprops/action-gh-release@v1
with:
files: orbisdev_sysroot.tar
name: "Development build"
tag_name: "latest"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}