-
Notifications
You must be signed in to change notification settings - Fork 409
103 lines (84 loc) · 2.25 KB
/
testing.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: Build Test and Publish a Testing Release
on:
workflow_dispatch:
inputs: {}
jobs:
prep:
runs-on: ubuntu-latest
outputs:
branch: ${{ steps.whichver.outputs.branch }}
steps:
- uses: actions/checkout@v4
- name: Determine package version
shell: bash
run: |
echo branch="refs/tags/v5.0b2" >> $GITHUB_OUTPUT
id: whichver
build-macos-x86_64:
runs-on: ['macos-14']
needs: prep
steps:
- uses: actions/checkout@v4
with:
repository: edgedb/edgedb-pkg
ref: master
path: edgedb-pkg
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248
if: true
with:
components: "cargo,rustc,rust-std"
toolchain: "stable"
targets: "x86_64-apple-darwin"
- name: Set up Python
uses: actions/setup-python@v5
if: true
with:
python-version: "3.x"
- name: Set up NodeJS
uses: actions/setup-node@v4
if: true
with:
node-version: '20'
- name: Install dependencies
if: true
run: |
env HOMEBREW_NO_AUTO_UPDATE=1 brew install libmagic
- name: Build
env:
SRC_REF: "${{ needs.prep.outputs.branch }}"
BUILD_IS_RELEASE: "true"
PKG_REVISION: "<current-date>"
PKG_SUBDIST: "testing"
PKG_PLATFORM: "macos"
PKG_PLATFORM_VERSION: "x86_64"
PKG_PLATFORM_ARCH: "x86_64"
EXTRA_OPTIMIZATIONS: "true"
METAPKG_GIT_CACHE: disabled
BUILD_GENERIC: true
run: |
edgedb-pkg/integration/macos/build.sh
- uses: actions/upload-artifact@v4
with:
name: builds-macos-x86_64
path: artifacts/macos-x86_64
test-macos-x86_64:
needs: [build-macos-x86_64]
runs-on: ['macos-13']
steps:
- uses: actions/checkout@v4
with:
repository: edgedb/edgedb-pkg
ref: master
path: edgedb-pkg
- uses: actions/download-artifact@v4
with:
name: builds-macos-x86_64
path: artifacts/macos-x86_64
- name: Test
env:
PKG_SUBDIST: "testing"
PKG_PLATFORM: "macos"
PKG_PLATFORM_VERSION: "x86_64"
run: |
edgedb-pkg/integration/macos/test.sh