-
Notifications
You must be signed in to change notification settings - Fork 5
56 lines (47 loc) · 1.4 KB
/
build.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
46
47
48
49
50
51
52
53
54
55
56
name: Build plooshfinder
on: [ push, pull_request, workflow_dispatch ]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Compile
run: make -j$(nproc)
- name: Move plooshfinder
run: |
mkdir -p build
mv libplooshfinder.a build
- name: Upload artifact
uses: wangyucode/[email protected]
with:
host: ${{ secrets.PLOOSH_SFTP_HOST }}
port: 22
username: sftp
password: ${{ secrets.PLOOSH_SFTP_PASS }}
forceUpload: true
dryRun: false
localDir: 'build/'
remoteDir: '/uploads/artifacts/plooshfinder/linux'
build-macos:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Compile
run: make -j$(sysctl -n hw.ncpu)
- name: Move plooshfinder
run: |
mkdir -p build
mv libplooshfinder.a build
- name: Upload artifact
uses: wangyucode/[email protected]
with:
host: ${{ secrets.PLOOSH_SFTP_HOST }}
port: 22
username: sftp
password: ${{ secrets.PLOOSH_SFTP_PASS }}
forceUpload: true
dryRun: false
localDir: 'build/'
remoteDir: '/uploads/artifacts/plooshfinder/macos'