Skip to content

Commit df40d48

Browse files
committed
Update main.yml
1 parent e2faeb4 commit df40d48

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/main.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,48 @@ jobs:
9393
run: |
9494
cargo login ${{ secrets.CARGO_TOKEN }}
9595
./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 }}

0 commit comments

Comments
 (0)