-
Notifications
You must be signed in to change notification settings - Fork 111
45 lines (42 loc) · 1.24 KB
/
release_linux.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
name: p7zip-release
on:
release:
tags:
- '*'
jobs:
build:
name: Ubuntu-Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: build 7zz & check
run: |
mkdir linux-p7zip
mkdir linux-p7zip/bin
mkdir linux-p7zip/lib
export PROJECT_ROOT=`pwd`
cd CPP/7zip/Bundles/Alone2
make -f makefile.gcc
INSTALL_PREFIX=$PROJECT_ROOT/linux-p7zip make -f makefile.gcc install
git clone https://github.com/jinfeihan57/p7zip_test_utils.git
cd p7zip_test_utils/check
bash check.sh $PROJECT_ROOT/linux-p7zip/bin/7zz
- name: build 7z.so
run: |
cd CPP/7zip/Bundles/Format7zF
make -f makefile.gcc
INSTALL_PREFIX=$PROJECT_ROOT/linux-p7zip make -f makefile.gcc install
- name: p7zip
run: |
7zz a linux-p7zip.7z linux-p7zip -y
7zz a linux-p7zip.zip linux-p7zip -y
- name: Upload p7zip binary
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: linux-p7zip.*
asset_name: linux-p7zip
tag: ${{ github.ref }}
overwrite: true
file_glob: true
body: "This is linux binary release using make"