Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Setup publishing #33

Draft
wants to merge 21 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Publish CI

on: [push]

jobs:
setup:
runs-on: ubuntu-22.04

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install rust
uses: actions-rs/toolchain@v1
with:
target: wasm32-wasi

- name: Cache TOML Cli
id: cache-toml
uses: actions/cache@v3

- name: Install TOML Cli
uses: actions-rs/cargo@v1
with:
command: install
args: toml-cli --locked

- name: Build
uses: actions-rs/cargo@v1
with:
command: build

- name: Test
uses: actions-rs/cargo@v1
with:
command: test

- name: Set version
run: toml set Cargo.toml "package.version" "0.1.0"

- name: Get version
run: "echo $(toml get Cargo.toml 'package.version')"
3 changes: 1 addition & 2 deletions rust-toolchain
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
[toolchain]
channel = "nightly"
nightly