integrate GitHub Actions CI further
This commit is contained in:
parent
24536b5e18
commit
dc6e564ea2
24
.github/workflows/build.yml
vendored
Normal file
24
.github/workflows/build.yml
vendored
Normal file
@ -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
|
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -1,8 +1,6 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: [ master ]
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
|
@ -8,8 +8,8 @@ os:
|
|||||||
|
|
||||||
rust:
|
rust:
|
||||||
- stable
|
- stable
|
||||||
- beta
|
# - beta
|
||||||
- nightly
|
# - nightly
|
||||||
|
|
||||||
git:
|
git:
|
||||||
autocrlf: false # don't mangle LF into CRLF on windows
|
autocrlf: false # don't mangle LF into CRLF on windows
|
||||||
|
18
Makefile
18
Makefile
@ -1,21 +1,25 @@
|
|||||||
#!/usr/bin/make -f
|
# Makefile for monolith
|
||||||
|
|
||||||
all: test
|
all: build
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
|
||||||
build:
|
build:
|
||||||
@cargo build --locked
|
@cargo build --locked
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
|
|
||||||
install:
|
|
||||||
@cargo install --force --locked --path .
|
|
||||||
.PHONY: install
|
|
||||||
|
|
||||||
test: build
|
test: build
|
||||||
@cargo test --locked
|
@cargo test --locked
|
||||||
@cargo fmt --all -- --check
|
@cargo fmt --all -- --check
|
||||||
.PHONY: test
|
.PHONY: test_code_formatting
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
@cargo fmt --all --
|
@cargo fmt --all --
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
|
|
||||||
|
install:
|
||||||
|
@cargo install --force --locked --path .
|
||||||
|
.PHONY: install
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
@cargo uninstall
|
||||||
|
.PHONY: uninstall
|
||||||
|
11
README.md
11
README.md
@ -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)
|
[![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)
|
[![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
|
## Installation
|
||||||
|
|
||||||
#### From source
|
|
||||||
$ git clone https://github.com/Y2Z/monolith.git
|
|
||||||
$ cd monolith
|
|
||||||
$ make install
|
|
||||||
|
|
||||||
#### With Homebrew (on macOS and GNU/Linux)
|
#### With Homebrew (on macOS and GNU/Linux)
|
||||||
$ brew install monolith
|
$ brew install monolith
|
||||||
|
|
||||||
@ -35,6 +31,11 @@ If compared to saving websites with `wget -mpk`, this tool embeds all assets as
|
|||||||
#### Via Docker
|
#### Via Docker
|
||||||
The guide can be found [here](docs/containers.md)
|
The guide can be found [here](docs/containers.md)
|
||||||
|
|
||||||
|
#### From source
|
||||||
|
$ git clone https://github.com/Y2Z/monolith.git
|
||||||
|
$ cd monolith
|
||||||
|
$ make install
|
||||||
|
|
||||||
---------------------------------------------------
|
---------------------------------------------------
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
Loading…
Reference in New Issue
Block a user