Skip to content

Commit

Permalink
release 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
galister committed Sep 5, 2024
1 parent b9d0a3b commit a48e132
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 4 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/check-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Check Build

on:
push:
#branches: [ "main" ]
pull_request:
#branches: [ "main" ]

env:
CARGO_TERM_COLOR: always
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Setup sccache
uses: mozilla-actions/[email protected]
- name: Prepare Environment
run: |
sudo apt install libopenxr-dev
rustup update stable
- name: Build
run: cargo build --verbose

43 changes: 43 additions & 0 deletions .github/workflows/make-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Make Release

on:
push:
tags:
- 'v**'

jobs:
make_release:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3

- name: Prepare Environment
run: |
sudo apt install libopenxr-dev
rustup update stable
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_KEY }}
with:
tag_name: ${{ github.ref_name }}
release_name: Motoc ${{ github.ref_name }}
draft: true
prerelease: false

- name: Cargo Build
run: |
cargo build --release
chmod +x target/release/motoc
- name: Upload
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_KEY }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/release/motoc
asset_name: motoc
asset_content_type: application/octet-stream
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "motoc"
version = "0.1.0"
version = "0.2.0"
edition = "2021"

[dependencies]
Expand Down

0 comments on commit a48e132

Please sign in to comment.