Skip to content

Commit 93f2478

Browse files
committed
Add test actions
1 parent b960720 commit 93f2478

File tree

5 files changed

+35
-8
lines changed

5 files changed

+35
-8
lines changed

.github/workflows/test.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: [ master, dev ]
6+
pull_request:
7+
branches: [ master, dev ]
8+
9+
jobs:
10+
build:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, macos-latest, windows-latest]
15+
steps:
16+
- name: Deploy Rust to GitHub Pages
17+
uses: valkyrie-language/[email protected]
18+
with: {
19+
github: text,
20+
trunk: [1, true],
21+
others: {
22+
key: value
23+
}
24+
}

action.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ name: 'Rust Auto Publish'
22
description: 'Auto publish rust binary to github release'
33
author: 'Aster <[email protected]>'
44
runs:
5-
using: 'node12'
5+
using: 'node22'
66
main: 'index.js'
77
branding:
8-
icon: 'folder-plus'
9-
color: 'green'
8+
icon: 'package'
9+
color: 'orange'
1010
inputs:
11-
wasm:
12-
description: 'Optional version of wasm-pack to install (eg. "v0.9.1", "latest")'
11+
github:
12+
description: 'Sub projects publish to rust'
1313
required: false
1414
default: 'latest'
1515
trunk:

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@
1515
"@bytecodealliance/jco": "^1.8.1",
1616
"@types/node": "^22",
1717
"typescript": "^5.7.2"
18+
},
19+
"dependencies": {
20+
"@valkyrie-language/rust-publish": "0.0.0"
1821
}
1922
}

projects/publish-rs/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "legion"
2+
name = "github"
33
version = "0.1.0"
44
authors = ["Aster <[email protected]>"]
55
description = "Valkyrie workspace manager"

projects/publish-wasm32-wasi/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@valkyrie-language/legion",
3-
"version": "0.1.3",
2+
"name": "@valkyrie-language/rust-publish",
3+
"version": "0.0.0",
44
"description": "Legion package manager CLI",
55
"license": "UNLICENSED",
66
"repository": {

0 commit comments

Comments
 (0)