-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (56 loc) · 1.71 KB
/
build-and-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
name: Build and Release
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install MinGW-w64
run: sudo apt-get install -y g++-mingw-w64-i686 mingw-w64-i686-dev
- name: Compile Code
run: make clean
- name: Make
run: make
- name: Prepare Release
run: |
mv bin/sof_buddy.dll .
zip release.zip sof_buddy.dll patch_sof_binary.ps1 set_sofplus_and_buddy_sof.cmd set_sofplus_sof.cmd set_vanilla_sof.cmd
working-directory: ${{ github.workspace }}
- name: Upload Release Artifact
uses: actions/upload-artifact@v2
with:
name: release-artifact
path: release.zip
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download Release Artifact
uses: actions/download-artifact@v2
with:
name: release-artifact
path: ${{ github.workspace }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.run_number }}
release_name: Release ${{ github.run_number }}
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: ./release.zip
asset_name: release.zip
asset_content_type: application/zip