Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Commit 9a1b625

Browse files
authored
workflows: setup a macOS GitHub workflow for CI (#1160)
Now that we can build with a stock toolchain, we can start investigating building on macOS with GitHub actions. This will give us additional coverage and earlier notifications.
1 parent 13bc8bb commit 9a1b625

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/macOS.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: macOS
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
jobs:
8+
build:
9+
runs-on: macos-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Install swift-DEVELOPMENT-SNAPSHOT-2020-12-14-a
15+
run: |
16+
curl -sOL https://swift.org/builds/development/xcode/swift-DEVELOPMENT-SNAPSHOT-2020-12-14-a/swift-DEVELOPMENT-SNAPSHOT-2020-12-14-a-osx.pkg
17+
xattr -dr com.apple.quarantine swift-DEVELOPMENT-SNAPSHOT-2020-12-14-a-osx.pkg
18+
installer -pkg swift-DEVELOPMENT-SNAPSHOT-2020-12-14-a-osx.pkg -target CurrentUserHomeDirectory
19+
- name: Set Environment Variables
20+
run: |
21+
echo "TOOLCHAINS=..." > $GITHUB_ENV
22+
23+
- name: Install X10
24+
run: |
25+
curl -sL https://artprodeus21.artifacts.visualstudio.com/A8fd008a0-56bc-482c-ba46-67f9425510be/3133d6ab-80a8-4996-ac4f-03df25cd3224/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2NvbXBuZXJkL3Byb2plY3RJZC8zMTMzZDZhYi04MGE4LTQ5OTYtYWM0Zi0wM2RmMjVjZDMyMjQvYnVpbGRJZC80Mzc2OC9hcnRpZmFjdE5hbWUvdGVuc29yZmxvdy1kYXJ3aW4teDY00/content?format=zip -o tensorflow-darwin-x64.zip
26+
unzip tensorflow-darwin-x64.zip
27+
mv tensorflow-darwin-x64/Library/tensorflow-2.3.0 ~/Library/
28+
29+
- name: Build
30+
run: |
31+
TOOLCHAINS=org.swift.50202012141a swift build -v -Xswiftc -DTENSORFLOW_USE_STANDARD_TOOLCHAIN -Xcc -I${HOME}/Library/tensorflow-2.3.0/usr/include -Xlinker -L${HOME}/Library/tensorflow-2.3.0/usr/lib
32+
# - name: Run tests
33+
# run: |
34+
# DYLD_LIBRARY_PATH=${HOME}/Library/tensorflow-2.3.0/usr/lib TOOLCHAINS=org.swift.50202012141a swift test -v -Xswiftc -DTENSORFLOW_USE_STANDARD_TOOLCHAIN -Xcc -I${HOME}/Library/tensorflow-2.3.0/usr/include -Xlinker -L${HOME}/Library/tensorflow-2.3.0/usr/lib
35+

0 commit comments

Comments
 (0)