integrate GitHub Actions CI further

pull/148/head
Sunshine 4 years ago
parent 24536b5e18
commit dc6e564ea2
No known key found for this signature in database
GPG Key ID: B80CA68703CD8AB1

@ -0,0 +1,24 @@
name: Build
on:
push:
branches: [ master ]
jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
rust:
- stable
runs-on: ${{ matrix.os }}
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v2
- name: Build
run: cargo build --all --locked --verbose

@ -1,8 +1,6 @@
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

@ -8,8 +8,8 @@ os:
rust:
- stable
- beta
- nightly
# - beta
# - nightly
git:
autocrlf: false # don't mangle LF into CRLF on windows

@ -1,21 +1,25 @@
#!/usr/bin/make -f
# Makefile for monolith
all: test
all: build
.PHONY: all
build:
@cargo build --locked
.PHONY: build
install:
@cargo install --force --locked --path .
.PHONY: install
test: build
@cargo test --locked
@cargo fmt --all -- --check
.PHONY: test
.PHONY: test_code_formatting
lint:
@cargo fmt --all --
.PHONY: lint
install:
@cargo install --force --locked --path .
.PHONY: install
uninstall:
@cargo uninstall
.PHONY: uninstall

@ -1,3 +1,4 @@
[![GitHub Actions Build Status](https://github.com/Y2Z/monolith/workflows/Build/badge.svg)](https://github.com/Y2Z/monolith/actions?query=workflow%3ABuild)
[![Travis CI Build Status](https://travis-ci.org/Y2Z/monolith.svg?branch=master)](https://travis-ci.org/Y2Z/monolith)
[![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/ae7soyjih8jg2bv7/branch/master?svg=true)](https://ci.appveyor.com/project/snshn/monolith/branch/master)
@ -21,11 +22,6 @@ If compared to saving websites with `wget -mpk`, this tool embeds all assets as
## Installation
#### From source
$ git clone https://github.com/Y2Z/monolith.git
$ cd monolith
$ make install
#### With Homebrew (on macOS and GNU/Linux)
$ brew install monolith
@ -35,6 +31,11 @@ If compared to saving websites with `wget -mpk`, this tool embeds all assets as
#### Via Docker
The guide can be found [here](docs/containers.md)
#### From source
$ git clone https://github.com/Y2Z/monolith.git
$ cd monolith
$ make install
---------------------------------------------------
## Usage

Loading…
Cancel
Save