forked from hacl-star/hacl-star
-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (42 loc) · 1.21 KB
/
dist.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
name: Dist CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
dist-ci:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Run CI script
run: .ci/script.sh
- name: Apple Silicon Build
if: matrix.os == 'macos-latest'
run: |
sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*
sudo xcode-select -s /Applications/Xcode_13.4.app
CROSS_CI="aarch64-apple-darwin" .ci/script.sh
- name: iOS aarch64
if: matrix.os == 'macos-latest'
run: |
sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*
sudo xcode-select -s /Applications/Xcode_13.4.app
CROSS_CI="aarch64-apple-ios" .ci/script.sh
- name: iOS x64 simulator
if: matrix.os == 'macos-latest'
run: |
sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*
sudo xcode-select -s /Applications/Xcode_13.4.app
CROSS_CI="x86_64-apple-ios-simulator" .ci/script.sh