Skip to content

Commit 1a5a235

Browse files
committed
create github actions
1 parent e035ccc commit 1a5a235

File tree

2 files changed

+59
-4
lines changed

2 files changed

+59
-4
lines changed

.github/workflows/release.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Release
2+
3+
permissions:
4+
contents: write
5+
6+
on:
7+
push:
8+
tags:
9+
- v[0-9]+.*
10+
11+
jobs:
12+
create-release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: taiki-e/create-gh-release-action@v1
17+
with:
18+
# (required) GitHub token for creating GitHub Releases.
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
# (Optional) Create a draft release.
21+
# [default value: false]
22+
draft: true
23+
24+
upload-assets:
25+
needs: create-release
26+
strategy:
27+
matrix:
28+
include:
29+
- target: x86_64-apple-darwin
30+
os: macos-latest
31+
- target: aarch64-apple-darwin
32+
os: macos-latest
33+
- target: x86_64-pc-windows-msvc
34+
os: windows-latest
35+
runs-on: ${{ matrix.os }}
36+
steps:
37+
- uses: actions/checkout@v4
38+
- uses: taiki-e/upload-rust-binary-action@v1
39+
with:
40+
# (required) Comma-separated list of binary names (non-extension portion of filename) to build and upload.
41+
# Note that glob pattern is not supported yet.
42+
bin: java_asm_egui
43+
# (optional) Target triple, default is host triple.
44+
# This is optional but it is recommended that this always be set to
45+
# clarify which target you are building for if macOS is included in
46+
# the matrix because GitHub Actions changed the default architecture
47+
# of macos-latest since macos-14.
48+
target: ${{ matrix.target }}
49+
# (optional) On which platform to distribute the `.zip` file.
50+
# [default value: windows]
51+
# [possible values: all, unix, windows, none]
52+
zip: all
53+
# (required) GitHub token for uploading assets to GitHub Releases.
54+
token: ${{ secrets.GITHUB_TOKEN }}
55+

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)