-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (39 loc) · 1.23 KB
/
package.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
name: Package
on: [ release ]
jobs:
build_binary:
name: build-binary
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.OSLASH_BOT_GITHUB_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Setup Velociraptor
uses: jurassiscripts/setup-velociraptor@v1
- name: Warm up the Deno dependency cache
run: vr warmup
- name: Compile binaries
run: |
vr compile
chmod ugo+x cwc-*
- name: Upload Linux binaries to release
uses: JasonEtco/upload-to-release@master
with:
args: 'dist/cwc-linux application/x-executable'
- name: Upload macOS Intel binaries to release
uses: JasonEtco/upload-to-release@master
with:
args: 'dist/cwc-apple-intel application/x-mach-binary'
- name: Upload macOS ARM binaries to release
uses: JasonEtco/upload-to-release@master
with:
args: 'cwc-apple-arm application/x-mach-binary'
- name: Upload Windows binaries to release
uses: JasonEtco/upload-to-release@master
with:
args: 'dist/cwc-windows.exe application/vnd.microsoft.portable-executable'