Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Granddave committed Dec 19, 2023
1 parent dd4f514 commit 5740f9b
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: ci

on:
push:
pull_request:

env:
CARGO_TERM_COLOR: always

jobs:
build:
strategy:
matrix:
toolchain:
- stable
- beta
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
components: rustfmt, clippy

- name: Format
run: cargo fmt --all -- --check

- name: Build
run: cargo build --verbose

- name: Run test
run: cargo test

- name: Run clippy
run: cargo clippy -- -D warnings
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
![ci](https://github.com/Granddave/mos6502/actions/workflows/ci.yml/badge.svg)


# MOS6502

This is a toy project where I've created an assembler for the 6502 assembly language. An emulator is in the works and a dissasembler would be fun to do as well.
Expand Down

0 comments on commit 5740f9b

Please sign in to comment.