Skip to content

Commit 88387ab

Browse files
authored
Merge pull request #1 from sh4r10/build-ci
Create build on push to master and provide relevant artifacts
2 parents 9b46993 + e1aa4f1 commit 88387ab

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed

.github/workflows/main.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Flutter build for linux
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Install build dependences
17+
run: sudo apt-get install clang cmake git ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
18+
19+
- name: Set up Flutter
20+
uses: subosito/flutter-action@v2
21+
with:
22+
flutter-version: '3.13.9'
23+
24+
- name: Install dependencies
25+
run: flutter pub get
26+
27+
- name: Build Linux application
28+
run: flutter build linux
29+
30+
- name: Archive artifacts
31+
uses: actions/upload-artifact@v2
32+
with:
33+
name: nordvpn-client
34+
path: build/linux/x64/release/bundle

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,15 @@ As the project is only supported on linux, use the command
5454
This will create the following directories
5555
`build/linux/[arch]/release/bundle`
5656

57+
You may need to provide executeable permissions
58+
`chmod +x nordvpn_client`
59+
5760
The bundle directory requires everything needed to run the project, cd into it and run
5861
`./nordvpn_client`
5962

6063
## Contributions
61-
Contributions of all kind are welcome, please create an issue if one does not already exist.
64+
Contributions of all kind are welcome, please create an issue if one does not already exist.
65+
The project uses [semantic versioning](https://semver.org/).
6266

6367
## License
64-
The project is licensed under the [MIT License](LICENSE.md).
68+
The project is licensed under the [MIT License](LICENSE.md).

0 commit comments

Comments
 (0)