File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 93
93
run : |
94
94
cargo login ${{ secrets.CARGO_TOKEN }}
95
95
./cargo_publish.sh
96
+
97
+ create-nightly-release :
98
+ if : contains(github.event.head_commit.message, 'update version (nightly')
99
+ runs-on : ubuntu-latest
100
+ steps :
101
+ - id : generate-version
102
+ run : echo "version=v$(cargo read-manifest | jq -r .version)" >> $GITHUB_OUTPUT
103
+ - uses : actions/checkout@v3
104
+ - uses : taiki-e/create-gh-release-action@v1
105
+ with :
106
+ title : ${{ steps.generate-version.outputs.version }}
107
+ token : ${{ secrets.GITHUB_TOKEN }}
108
+
109
+ upload-nightly-artifacts :
110
+ needs : create-nightly-release
111
+ if : contains(github.event.head_commit.message, 'update version (nightly')
112
+ strategy :
113
+ fail-fast : false
114
+ matrix :
115
+ include :
116
+ - target : armv7-unknown-linux-gnueabihf
117
+ os : ubuntu-latest
118
+ - target : aarch64-unknown-linux-gnu
119
+ os : ubuntu-latest
120
+ - target : aarch64-apple-darwin
121
+ os : macos-latest
122
+ - target : x86_64-unknown-linux-gnu
123
+ os : ubuntu-latest
124
+ - target : x86_64-apple-darwin
125
+ os : macos-latest
126
+ - target : x86_64-pc-windows-msvc
127
+ os : windows-latest
128
+ runs-on : ${{ matrix.os }}
129
+ steps :
130
+ - uses : actions/checkout@v3
131
+ - name : update-rustup
132
+ run : rustup update stable
133
+ - uses : taiki-e/upload-rust-binary-action@v1
134
+ with :
135
+ bin : erg
136
+ target : ${{ matrix.target }}
137
+ include : crates/erg_compiler/lib
138
+ features : full
139
+ env :
140
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments