Skip to content

feat: Github Actionsを用いたCIの追加 #1

feat: Github Actionsを用いたCIの追加

feat: Github Actionsを用いたCIの追加 #1

Workflow file for this run

on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
./target/
key: test-${{ hashFiles('**/Cargo.lock') }}
restore-keys: test-
- name: Setup rust
run: |
rustup install nightly
rustup default nightly
- name: Run Test
run: cargo test
build:
runs-on: ubuntu-latest
strategy:
matrix:
build-target:
- linux
- macos
- win-gnu
- win-msvc
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/build-${{ matrix.build-target }}.yaml

Check failure on line 47 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yaml

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yaml (Line: 47, Col: 15): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.build-target