-
-
Notifications
You must be signed in to change notification settings - Fork 38
60 lines (45 loc) · 1.35 KB
/
build-cli.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
57
58
59
60
name: CLI builds
on: push
env:
BUILD_TYPE: Release
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- triple: 'x86_64-linux-gnu'
target: 'linux'
- triple: 'aarch64-linux-gnu'
target: 'linux'
- triple: 'x86_64-windows-msvc'
target: 'windows'
- triple: 'x86_64-apple-darwin'
target: 'macos'
- triple: 'arm64-apple-macos'
target: 'macos'
name: Build CLI for ${{ matrix.triple }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Update APT repos
run: sudo apt-get update
- name: Set-up D compiler
uses: ./.github/actions/setup-d-compiler
with:
target-triple: ${{ matrix.triple }}
- name: Write version file
uses: ./.github/actions/write-version-file
- name: Build
run: dub build -b release-debug --compiler=ldc2 --arch ${{ matrix.triple }} :cli-frontend
- name: Move files around for artifcation
uses: ./.github/actions/rename-files
with:
build-tag: cli-${{ matrix.triple }}
- uses: actions/upload-artifact@v3
with:
name: sideloader-cli-${{ matrix.triple }}
path: |
${{github.workspace}}/bin/*