forked from ARDATI-Rami/VirtualLeaf2021
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (49 loc) · 1.68 KB
/
.github.yml
File metadata and controls
58 lines (49 loc) · 1.68 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
name: VirtualLeaf compile clean and package for linux
run-name: ${{ github.actor }} is testing on linux 🚀
on:
push:
branches:
- main
pull_request:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install
run: sudo ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime
- run: sudo apt-get -qq update
- run: sudo apt-get -qq -y install lsb-release
- run: lsb_release -a
- run: sudo apt-get -qq -y install build-essential git cmake make-guile g++ qtbase5-dev qtbase5-dev-tools qtcreator
- name: Build
run: cd ${{ github.workspace }}/src;qmake VirtualLeaf.pro;make -f Makefile
- name: Package
uses: actions/upload-artifact@v4
with:
name: VirtualLeaf-linux-x64
path: |
${{ github.workspace }}/bin/**/*
${{ github.workspace }}/data/**/*
release:
runs-on: ubuntu-latest
needs: build
steps:
- name: Install
run: sudo apt-get install zip gzip
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/download-artifact@v4
- name: Display structure of downloaded files
run: ls -R ${{ github.workspace }};cd ${{ github.workspace }}
- name: '📦 Package linux x64'
if: github.event_name == 'release' && github.event.action == 'created'
run: |
zip -r --symlinks VirtualLeaf-linux-x64.zip VirtualLeaf-linux-x64
gh release upload ${{github.event.release.tag_name}} VirtualLeaf-linux-x64.zip
env:
GITHUB_TOKEN: ${{ github.TOKEN }}
shell: bash