-
Notifications
You must be signed in to change notification settings - Fork 5
55 lines (46 loc) · 1.24 KB
/
nim-precompile-binaries.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
name: Build and Upload Static Libraries
on:
push:
branches:
- kw/nim-release-branch
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Run compile script
run: ./scripts/compile.sh nim
shell: bash
- name: Upload library
uses: actions/upload-artifact@v2
with:
name: static-libs
path: bindings/nim/nim_code/build
merge_and_push:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: precompiled-libs
fetch-depth: 0
- name: Download all artifacts
uses: actions/download-artifact@v2
with:
name: static-libs
path: bindings/nim/nim_code/build
- name: Commit and push if changed
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
git add bindings/nim/nim_code/build
git commit -m "Update precompiled libraries" || exit 0
git push