-
-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (67 loc) · 2.65 KB
/
Deploy.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: package
on:
workflow_dispatch:
# We build semver tags, and the master branch.
push:
branches: [ master ]
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
macos:
runs-on: macos-15
name: macOS
steps:
- name: Setup AWS CLI
uses: aws-actions/configure-aws-credentials@v1
with:
aws-secret-access-key: ${{ secrets.AWS_S3_ACCESS_SECRET }}
aws-access-key-id: ${{ vars.AWS_S3_ACCESS_KEY }}
aws-region: us-east-1
- name: Checkout repository
uses: actions/checkout@v3
- name: Build Archer
run: |
swift --version
swift build -c release --product archer
tar -czf archer.tar.gz -C .build/release archer
- name: Upload products
env:
ARCHER_PLATFORM: "${{ runner.os }}-${{ runner.arch }}"
ARCHER_VERSION: ${{ github.head_ref || github.ref_name }}
run: Scripts/Deploy archer.tar.gz
linux:
strategy:
matrix:
os:
- codename: jammy
version: Ubuntu-22.04
display: Ubuntu 22.04
- codename: noble
version: Ubuntu-24.04
display: Ubuntu 24.04
arch:
- id: aarch64
name: ARM64
- id: x86_64
name: X64
runs-on: ubuntu-24.04
name: "${{ matrix.os.display }} (${{ matrix.arch.id }})"
steps:
- name: Setup AWS CLI
uses: aws-actions/configure-aws-credentials@v1
with:
aws-secret-access-key: ${{ secrets.AWS_S3_ACCESS_SECRET }}
aws-access-key-id: ${{ vars.AWS_S3_ACCESS_KEY }}
aws-region: us-east-1
- name: Checkout repository
uses: actions/checkout@v3
- name: Build Archer
run: |
Scripts/BuildForBinaryDistribution ${{ matrix.arch.id }} \
--os ${{ matrix.os.codename }}
tar -czf archer.tar.gz -C .build.${{ matrix.arch.id }}/release archer
- name: Upload products
env:
ARCHER_PLATFORM: "${{ matrix.os.version }}-${{ matrix.arch.name }}"
ARCHER_VERSION: ${{ github.head_ref || github.ref_name }}
run: Scripts/Deploy archer.tar.gz