Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #13 from adrianmrit/release-v1.0.0
Browse files Browse the repository at this point in the history
Release v1.0.0
  • Loading branch information
adrianmrit authored Oct 11, 2022
2 parents 6ee2382 + 6e6ebda commit c5a3a3a
Show file tree
Hide file tree
Showing 21 changed files with 2,015 additions and 815 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Automatic security audit of dependencies
# https://github.com/actions-rs/audit-check

name: Security audit
on:
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
jobs:
security_audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Builds the project and uploads as artifacts

on:
push:
tags:
- '*'
workflow_dispatch:

name: Build

jobs:
build:
name: Build ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-pc-windows-gnu
archive: zip
- target: x86_64-unknown-linux-musl
archive: tar.gz tar.xz
- target: x86_64-apple-darwin
archive: zip
steps:
- uses: actions/checkout@master
- name: Compile
id: compile
uses: rust-build/[email protected]
with:
RUSTTARGET: ${{ matrix.target }}
ARCHIVE_TYPES: ${{ matrix.archive }}
EXTRA_FILES: "README.md LICENSE CHANGELOG.md"
TOOLCHAIN_VERSION: "stable"
UPLOAD_MODE: none
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: Binary
if-no-files-found: error
path: |
${{ steps.compile.outputs.BUILT_ARCHIVE }}
${{ steps.compile.outputs.BUILT_CHECKSUM }}
51 changes: 51 additions & 0 deletions .github/workflows/cov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Based on https://github.com/codecov/example-rust
#
# While our "example" application has the platform-specific code,
# for simplicity we are compiling and testing everything on the Ubuntu environment only.
# For multi-OS testing see the `cross.yml` workflow.

on:
push:
branches:
- 'main'
workflow_dispatch:

name: Code coverage

jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Install kcov
run: |
sudo apt-get install -y libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc binutils-dev libiberty-dev zlib1g-dev
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
tar xzf master.tar.gz &&
cd kcov-master &&
mkdir build &&
cd build &&
cmake .. &&
make &&
sudo make install
- name: Generate Coverage
run: |
python3 generate_cov.py
- name: Upload to Codecov
uses: codecov/[email protected]
with:
verbose: true
fail_ci_if_error: true
directory: ./target_cov/cov/
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/target
local.yamis.toml
/target_releases
/releases
ilocal.yamis.toml
/target_cov
11 changes: 7 additions & 4 deletions CHANGELOG.MD → CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Changelog

## [1.0.0] - 2022-09-26
## [1.0.0] - 2022-10-10
## Added
- Get help in the command like by calling yamis with the `--help` or `-h` option
- Get the version in the command line by calling yamis with `-V`
- Get the version in the command line by calling yamis with `-V`
- Get the list of config files and tasks by calling yamis with `-t`
- Get basic info about a task by calling yamis with `-i <TASK>`
- Get list of task files by calling yamis with `-l` option
Expand All @@ -15,7 +15,9 @@
- Preparing for future backward compatibility across mayor versions

### Changed
- Syntax has changed
- Syntax changes
- Replaced `interpreter` argument with `script_runner` and `script_runner_args`
- Add `script_extension` alias for `script_ext`
- Use clap
- Use pest to parse scripts and arguments
- A program argument can contain either a task or a literal, not both at the same time
Expand All @@ -24,6 +26,7 @@
- Tasks inherit from os-specific bases if they exist
- Changed how all arguments and positional arguments are passed
- Improved and fixed error displaying
- Key-value arguments can be passed as `--key value` or `--key=value`

## [0.3.0] - 2022-08-28
### Added
Expand All @@ -48,4 +51,4 @@

## [0.1.0] - 2022-07-30
### Added
- Initial release.
- Initial release.
8 changes: 1 addition & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "yamis"
version = "1.0.0"
rust-version = "1.63"
edition = "2021"
license = "GPL-3.0-only"
authors = ["Adrian Martinez <[email protected]>"]
Expand Down Expand Up @@ -50,12 +49,7 @@ assert_fs = "1.0"
name = "yamis"
path = "src/main.rs"

# fixes linker `cc` not found issue
[package.metadata.cross.target.x86_64-apple-darwin]
zig = true

[features]
default = ["runtime"]
# Only add other versions as dependencies if the runtime feature is enabled
#runtime = ["yamis_v2"]
runtime = []
runtime = []
Loading

0 comments on commit c5a3a3a

Please sign in to comment.