Add index.md to fullsnes markdown files #70
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Postsubmit | |
| on: | |
| push: | |
| branches: ["main"] | |
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| # Allow one concurrent deployment | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: true | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| # Check formatting and clippy | |
| health: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install system dependencies | |
| run: sudo apt-get update && sudo apt-get install -y libasound2-dev | |
| - name: Clippy | |
| run: cargo clippy --workspace --all-targets | |
| - name: Rustfmt | |
| run: cargo fmt --all -- --check | |
| # Run tests | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: taiki-e/install-action@cargo-nextest | |
| - name: Install system dependencies | |
| run: sudo apt-get update && sudo apt-get install -y libasound2-dev | |
| - name: Build | |
| run: cargo build --workspace --all-targets | |
| - name: Run Tests | |
| run: cargo nextest run --verbose -p sres_emulator | |
| # Run tests with coverage | |
| coverage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: taiki-e/install-action@cargo-nextest | |
| - uses: taiki-e/install-action@cargo-llvm-cov | |
| - name: Install system dependencies | |
| run: sudo apt-get update && sudo apt-get install -y libasound2-dev | |
| - name: Run Tests | |
| run: cargo llvm-cov nextest -p sres_emulator --codecov --output-path codecov.json | |
| - name: Upload coverage | |
| uses: codecov/codecov-action@v3 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: codecov.json | |
| fail_ci_if_error: true | |
| # Build and deploy to GitHub Pages | |
| deploy: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./sres_egui | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: taiki-e/install-action@trunk | |
| - name: Build | |
| run: trunk build --public-url=https://denniskempin.github.io/sres/ | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v3 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: "sres_egui/dist" | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |