Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
mgi388 committed Jun 22, 2024
1 parent 3f5e4e4 commit e25955f
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 17 deletions.
5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
title: ""
labels: bug
assignees: ''

assignees: ""
---

## Bug description
Expand Down
5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
title: ""
labels: enhancement
assignees: ''

assignees: ""
---

## Motivations
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: Security audit
on:
schedule:
# Runs at 00:00 UTC everyday
- cron: '0 0 * * *'
- cron: "0 0 * * *"
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
- "**/Cargo.toml"
- "**/Cargo.lock"
pull_request:

jobs:
Expand All @@ -20,4 +20,3 @@ jobs:
uses: rustsec/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}

3 changes: 1 addition & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ name: CD # Continuous Deployment
on:
push:
tags:
- '[v]?[0-9]+.[0-9]+.[0-9]+'
- "[v]?[0-9]+.[0-9]+.[0-9]+"

jobs:

publish:
name: Publishing for ${{ matrix.job.os }}
runs-on: ${{ matrix.job.os }}
Expand Down
20 changes: 17 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
pull_request:

jobs:

test:
name: Test Suite
runs-on: ubuntu-latest
Expand All @@ -17,8 +16,24 @@ jobs:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Set up cache
uses: actions/cache@v2
id: cache
with:
path: game-files
key: game-files
- name: Download game files
if: steps.cache.outputs.cache-hit != 'true'
run: |
curl -L -o DARKOMEN.zip -H 'Authorization: token ${{ secrets.DARKOMEN_GAME_FILES_PAT }}' -H 'Accept: application/octet-stream' -L https://api.github.com/repos/mgi388/darkomen-game-files/releases/assets/175295196
unzip DARKOMEN.zip -d ./
ls -la ./
ls -la ./DARKOMEN
- name: Run tests
run: cargo test --all-features --workspace
run: |
export DARKOMEN_PATH=$(pwd)
ls -la $DARKOMEN_PATH
cargo test --all-features --workspace
rustfmt:
name: Rustfmt
Expand Down Expand Up @@ -61,4 +76,3 @@ jobs:
env:
RUSTDOCFLAGS: -D warnings
run: cargo doc --no-deps --document-private-items --all-features --workspace --examples

2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
/target
.cargo-ok
.DS_Store
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
Expand Down

0 comments on commit e25955f

Please sign in to comment.