Skip to content

Commit

Permalink
ci: initialize rust ci
Browse files Browse the repository at this point in the history
  • Loading branch information
fbac committed Aug 7, 2024
1 parent 21cfcad commit 267f4f7
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/nostd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This workflow checks whether the library is able to run without the std
# library. See `check.yml` for information about how the concurrency
# cancellation and workflow triggering works.
name: no-std
permissions:
contents: read
on:
push:
branches: [ main ]
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
CARGO_TERM_COLOR: always

jobs:
nostd:
runs-on: ubuntu-latest
name: ${{ matrix.target }}

strategy:
matrix:
target: [ wasm32-unknown-unknown ]

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Install stable
uses: dtolnay/rust-toolchain@stable

- name: rustup target add ${{ matrix.target }}
run: rustup target add ${{ matrix.target }}

- name: cargo check
run: cargo check --release --target ${{ matrix.target }} --no-default-features
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/target
**/.DS_Store

0 comments on commit 267f4f7

Please sign in to comment.