Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 16 research build pipeline #18

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Yellow

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: magnonellie/amethyst-dependencies:latest
steps:
- name: Install dependencies
run: apt install gcc pkg-config openssl libasound2-dev cmake build-essential python3 libfreetype6-dev libexpat1-dev libxcb-composite0-dev libssl-dev libx11-dev
- name: Check Formatting
run: cargo fmt -- --check
- name: Build
run: cargo build --verbose --all
- name: Run tests
run: cargo test --verbose --all
- name: Discord notification
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@master
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
DOCKER_IMAGE = yellow:latest
run:
docker run --rm -it ${DOCKER_IMAGE} cargo run
docker run --rm ${DOCKER_IMAGE} cargo run
build:
docker run --rm -it ${DOCKER_IMAGE} cargo build
docker run --rm ${DOCKER_IMAGE} cargo build
test:
docker run --rm -it ${DOCKER_IMAGE} cargo test
docker run --rm ${DOCKER_IMAGE} cargo test
setup:
docker build -t yellow .
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Yellow - A simple Rust game

[![Build Status](https://travis-ci.com/Druue/yellow.svg?branch=master)](https://travis-ci.com/Druue/yellow)
![Yellow](https://github.com/Druue/yellow/workflows/Yellow/badge.svg)

More information will come....

Expand Down