This repository has been archived by the owner on May 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from adrianmrit/release-v1.0.0
Release v1.0.0
- Loading branch information
Showing
21 changed files
with
2,015 additions
and
815 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]>"] | ||
|
@@ -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 = [] |
Oops, something went wrong.