File tree 1 file changed +35
-0
lines changed
1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 56
56
with :
57
57
files : target/${{ matrix.target }}/release/uip_*
58
58
prerelease : ${{ contains(github.ref, '-') }}
59
+
60
+ build-macos :
61
+ runs-on : macos-latest
62
+ env :
63
+ RUST_BACKTRACE : full
64
+ strategy :
65
+ matrix :
66
+ target :
67
+ - x86_64-apple-darwin
68
+ - aarch64-apple-darwin
69
+ steps :
70
+ - uses : actions/checkout@v3
71
+
72
+ - name : Install Rust toolchain
73
+ run : |
74
+ rustup set profile minimal
75
+ rustup toolchain install stable
76
+ rustup default stable
77
+ rustup override set stable
78
+ rustup target add --toolchain stable ${{ matrix.target }}
79
+
80
+ - name : Build release
81
+ run : |
82
+ cargo build --release --target ${{ matrix.target }}
83
+
84
+ - name : Rename artifact
85
+ run : |
86
+ cd target/${{ matrix.target }}/release
87
+ mv uip uip_${{ matrix.target }}
88
+
89
+ - name : Upload Github Assets
90
+ uses : softprops/action-gh-release@v1
91
+ with :
92
+ files : target/${{ matrix.target }}/release/uip_*
93
+ prerelease : ${{ contains(github.ref, '-') }}
You can’t perform that action at this time.
0 commit comments