-
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (37 loc) · 1.07 KB
/
build.yml
File metadata and controls
39 lines (37 loc) · 1.07 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
name: Build jServ Release
on:
push:
branches:
- Dart
jobs:
Build:
runs-on: ubuntu-20.04
steps:
- name: Get repo
uses: actions/checkout@v2
- name: Show directory
run: ls
- name: Get Dart
run: |
sudo apt update
sudo apt install apt-transport-https -y
sudo sh -c 'curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
sudo sh -c 'curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
sudo apt update
sudo apt install dart -y
- name: Build
run: |
cd Server
export PATH=$PATH:/usr/lib/dart/bin
pub get
dart compile exe main.dart -o jserv
- name: Push tarball as artifact
uses: actions/upload-artifact@v2
with:
name: linux-release
path: |
Server/jserv
Server/Databases
Server/config.json
Server/*.jserv
retention-days: 5