forked from tytso/e2fsprogs
-
Notifications
You must be signed in to change notification settings - Fork 4
91 lines (72 loc) · 1.89 KB
/
latest-release.yaml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: latest-release
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: Build Release Library
runs-on: ubuntu-latest
container: ubuntu:18.04
steps:
- uses: actions/checkout@v3
- name: Build
shell: bash
run: |
apt update -y
apt install -y sudo build-essential
./build.sh
- name: Upload build
uses: actions/upload-artifact@v3
with:
name: builds
path: build/libext2fs.tar.gz
build-on-aarch64:
name: Build Release Library For AArch64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: uraimo/run-on-arch-action@v2
name: Build on AArch64
id: build
with:
arch: aarch64
distro: ubuntu18.04
githubToken: ${{ secrets.GITHUB_TOKEN }}
dockerRunArgs: |
--volume "${{github.workspace}}:/build_aarch64"
shell: /bin/bash
install: |
apt-get update -y
apt-get install -y sudo
apt-get install -y build-essential
run: |
cd /build_aarch64
gcc --version
./build.sh
- name: Upload build
uses: actions/upload-artifact@v3
with:
name: builds
path: ${{github.workspace}}/build/libext2fs*.tar.gz
release:
name: Create Latest Release
runs-on: ubuntu-latest
needs: [build, build-on-aarch64]
steps:
- name: Download builds
uses: actions/download-artifact@v3
- name: Display structure of downloaded files
run: ls -l builds
- name: Create Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
title: "Development Build"
files: |
builds/libext2fs*.tar.gz