-
Notifications
You must be signed in to change notification settings - Fork 4
58 lines (57 loc) · 1.88 KB
/
release-c-xla.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
on:
workflow_dispatch:
push:
branches: master
paths:
- 'spidr/backend/VERSION'
jobs:
create-release:
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create-release.outputs.upload_url }}
steps:
- uses: actions/checkout@v4
- name: Read C XLA version
run: echo "C_XLA_VERSION=$(cat spidr/backend/VERSION)" >> $GITHUB_ENV
- name: Create C XLA release
id: create-release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: c-xla-v${{ env.C_XLA_VERSION }}
release_name: C XLA release ${{ env.C_XLA_VERSION }}
body: "C XLA release ${{ env.C_XLA_VERSION }}"
c-xla-linux-x86_64:
needs: create-release
runs-on: ubuntu-latest
container: tensorflow/build:latest-python3.9
steps:
- uses: actions/checkout@v4
- name: Build C XLA lib
run: ./spidr/backend/build.sh
- name: Publish C XLA lib
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release.outputs.upload_url }}
asset_path: libc_xla-linux-x86_64.so
asset_name: libc_xla-linux-x86_64.so
asset_content_type: application/x-sharedlib
c-xla-darwin-aarch64:
needs: create-release
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Build C XLA lib
run: ./spidr/backend/build.sh
- name: Publish C XLA lib
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release.outputs.upload_url }}
asset_path: libc_xla-darwin-aarch64.dylib
asset_name: libc_xla-darwin-aarch64.dylib
asset_content_type: application/x-sharedlib