Skip to content

Commit a48e132

Browse files
committed
release 0.2.0
1 parent b9d0a3b commit a48e132

4 files changed

Lines changed: 74 additions & 4 deletions

File tree

.github/workflows/check-build.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Check Build
2+
3+
on:
4+
push:
5+
#branches: [ "main" ]
6+
pull_request:
7+
#branches: [ "main" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
SCCACHE_GHA_ENABLED: "true"
12+
RUSTC_WRAPPER: "sccache"
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-22.04
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Setup sccache
20+
uses: mozilla-actions/sccache-action@v0.0.3
21+
- name: Prepare Environment
22+
run: |
23+
sudo apt install libopenxr-dev
24+
rustup update stable
25+
- name: Build
26+
run: cargo build --verbose
27+

.github/workflows/make-release.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Make Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v**'
7+
8+
jobs:
9+
make_release:
10+
runs-on: ubuntu-22.04
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: Prepare Environment
15+
run: |
16+
sudo apt install libopenxr-dev
17+
rustup update stable
18+
19+
- name: Create Release
20+
id: create_release
21+
uses: actions/create-release@v1
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.RELEASE_KEY }}
24+
with:
25+
tag_name: ${{ github.ref_name }}
26+
release_name: Motoc ${{ github.ref_name }}
27+
draft: true
28+
prerelease: false
29+
30+
- name: Cargo Build
31+
run: |
32+
cargo build --release
33+
chmod +x target/release/motoc
34+
35+
- name: Upload
36+
uses: actions/upload-release-asset@v1
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.RELEASE_KEY }}
39+
with:
40+
upload_url: ${{ steps.create_release.outputs.upload_url }}
41+
asset_path: ./target/release/motoc
42+
asset_name: motoc
43+
asset_content_type: application/octet-stream

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "motoc"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
edition = "2021"
55

66
[dependencies]

0 commit comments

Comments
 (0)