1
-
2
1
name : Build and publish
3
-
4
2
on :
5
3
push :
6
4
tags : ['v*']
7
-
8
5
jobs :
9
-
10
6
build-and-publish-to-crates-io :
11
7
name : Build and publish to crates.io
12
8
runs-on : macos-latest
39
35
- name : Install cargo make
40
36
run : cargo install cargo-make
41
37
- name : Build binary
42
- run : cargo make zip-release - e CARGO_MAKE_RELEASE_FLOW_TARGET=${{ matrix.binary_target }}
38
+ run : cargo make - e CARGO_MAKE_RELEASE_FLOW_TARGET=${{ matrix.binary_target }} zip-release
43
39
- name : Upload zip file
44
40
uses : svenstaro/upload-release-action@v2
45
41
with :
@@ -49,24 +45,25 @@ jobs:
49
45
overwrite : true
50
46
file_glob : true
51
47
52
- # build-and-publish-release-examples:
53
- # name: Build and publish examples to Github release
54
- # needs: build-and-publish-to-crates-io
55
- # runs-on: macos-latest
56
- # steps:
57
- # - uses: actions/checkout@master
58
- # - name: Install cargo make
59
- # run: cargo install cargo-make
60
- # - name: Build binary
61
- # run: |
62
- # cargo install --git=https://github.com/dodorare/crossbow --branch=main crossbundle
63
- # rustup target add armv7-linux-androideabi aarch64-linux-android i686-linux-android x86_64-linux-android
64
- # cargo make build-release-examples
65
- # - name: Upload zip file
66
- # uses: svenstaro/upload-release-action@v2
67
- # with:
68
- # repo_token: ${{ secrets.GITHUB_TOKEN }}
69
- # file: 'target/apks/*.apk'
70
- # tag: ${{ github.ref }}
71
- # overwrite: true
72
- # file_glob: true
48
+ build-and-publish-release-examples :
49
+ name : Build and publish examples to Github release
50
+ needs : build-and-publish-to-crates-io
51
+ if : false # TODO: Finish examples and enable this
52
+ runs-on : macos-latest
53
+ steps :
54
+ - uses : actions/checkout@master
55
+ - name : Install cargo make
56
+ run : cargo install cargo-make
57
+ - name : Build binary
58
+ run : |
59
+ cargo install --git=https://github.com/dodorare/crossbow --branch=main crossbundle
60
+ rustup target add armv7-linux-androideabi aarch64-linux-android i686-linux-android x86_64-linux-android
61
+ cargo make build-release-examples
62
+ - name : Upload zip file
63
+ uses : svenstaro/upload-release-action@v2
64
+ with :
65
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
66
+ file : ' target/apks/*.apk'
67
+ tag : ${{ github.ref }}
68
+ overwrite : true
69
+ file_glob : true
0 commit comments