Skip to content

Commit

Permalink
Release v1.0.0 (#95)
Browse files Browse the repository at this point in the history
* please help (#7)

* fire

* a

* fix url

* fix errors

* aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

* add support check

* maybe fix os version

* kazukazu

* delete std::any

* fix warnings

Co-authored-by: ced <momo9795579@gmail.com>

* fix(deps): update rust crate sysinfo to v0.27.4 (#8)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate sysinfo to v0.27.5 (#9)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate sysinfo to v0.27.6 (#11)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Change renovate target

* Fix end of line to lf

* fix(deps): update rust crate rust_socketio to v0.4.1 (#12)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): lock file maintenance (#13)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate sysinfo to v0.27.7 (#14)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): lock file maintenance (#15)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Fix can't connect (#10)

* fire

* a

* fix url

* fix errors

* aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

* add support check

* maybe fix os version

* kazukazu

* delete std::any

* fix warnings

* idk

* idk

* update

* hmm

* connect done

* test

* add thread name

* a

* hmm

* delete rand(tested threads)

* refactaring with @hiraginoyuki

* hmm

* delete mimi

* fix load average

* hmm

* to kazu

Co-authored-by: ced <momo9795579@gmail.com>

* fix(deps): pin dependencies (#17)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Support disk usage (#16)

* Support disk usage

* Forgot to remove println

* cargo fmt

* Remove println

* Added GPU (#18)

* Support disk usage

* Forgot to remove println

* cargo fmt

* Remove println

* gpu testing

* gpu done

* fix(deps): pin dependencies (#17)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix gpu usage with not a number

---------

Co-authored-by: kazukazu123123 <50506519+kazukazu123123@users.noreply.github.com>
Co-authored-by: ced <momo9795579@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Added hostname option (#20)

* hostname

* hostname2

---------

Co-authored-by: ced <momo9795579@gmail.com>

* Specify an icon for windows (#24)

* hostname

* hostname2

* added icon for windows

---------

Co-authored-by: ced <momo9795579@gmail.com>

* fix(deps): pin rust crate regex to =1.7.1 (#19)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* eo (#26)

* Revert "eo (#26)" (#27)

This reverts commit 15ad4ae.

* chore(deps): pin rust crate winres to =0.1.12 (#25)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Add do-not-merge action (#29)

* chore(deps): lock file maintenance (#33)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate serde_json to v1.0.92 (#31)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate serde_json to v1.0.93 (#34)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): lock file maintenance (#35)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): lock file maintenance (#37)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate sysinfo to v0.28.0 (#36)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate sysinfo to v0.28.1 (#38)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate sysinfo to v0.28.2 (#39)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate serde_json to v1.0.94 (#40)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): lock file maintenance (#41)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate serde to v1.0.153 (#42)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate serde to v1.0.154 (#44)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Fix do-not-merge action (#43)

* fix(deps): update rust crate serde to v1.0.155 (#45)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate serde to v1.0.156 (#47)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): lock file maintenance (#48)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate sysinfo to v0.28.3 (#49)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate serde to v1.0.157 (#50)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): lock file maintenance (#51)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate serde to v1.0.158 (#52)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate regex to v1.7.2 (#53)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate dotenvy to v0.15.7 (#54)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate sysinfo to v0.28.4 (#55)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate regex to v1.7.3 (#56)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): lock file maintenance (#57)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate serde to v1.0.159 (#59)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate serde_json to v1.0.95 (#58)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate serde to v1.0.160 (#60)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate serde_json to v1.0.96 (#61)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate regex to v1.8.0 (#62)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate regex to v1.8.1 (#63)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* ぜったいブランチ名とかけ離れてる (#64)

* fix(deps): pin rust crate serde_derive to =1.0.160 (#65)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix env code (#66)

* chore(deps): lock file maintenance (#69)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Fix memory usage (#73)

* Fix memory usage

* fix (2)

* Fix target_os cfg attribute for Windows (#74)

* Fix do-not-merge action (#75)

* Add Security audit action (#76)

* add rustls (#67)

* add rust-openssl

* fix package

* あどれどめ (#28)

* eo

* Update README.md

---------

Co-authored-by: kazukazu123123 <50506519+kazukazu123123@users.noreply.github.com>

* fix(deps): pin rust crate rustls to =0.21.0 (#77)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate rustls to v0.21.1 (#78)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate sysinfo to v0.29.0 (#72)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): lock file maintenance (#79)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Add openssl for rust_socketio (#80)

remove rustls ( revert 1249115 )

* fix(deps): pin rust crate openssl to =0.10.52 (#81)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Add build action (#83)

* Fix build action (#85)

* Fix do-not-merge action (#84)

* Add versioning action (#86)

* chore(deps): lock file maintenance (#82)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update swatinem/rust-cache digest to ad97570 (#87)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update swatinem/rust-cache digest to bb80d0f (#88)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Fix versioning.yml (#89)

* Update serde related crate (#90)

* chore(deps): update swatinem/rust-cache digest to 988c164 (#91)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate regex to v1.8.2 (#93)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): lock file maintenance (#92)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate regex to v1.8.3 (#94)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Release v1.0.0

---------

Co-authored-by: Ced <43949163+Zel9278@users.noreply.github.com>
Co-authored-by: ced <momo9795579@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Mogyuchi <mogyuchi@mogyuchi.com>
Co-authored-by: あさると <34514603+Assault1892@users.noreply.github.com>
Co-authored-by: Mogyuchi <mogyuchi@mogyuchi.jp>
  • Loading branch information
7 people authored May 28, 2023
1 parent 5ec161f commit 32b6791
Show file tree
Hide file tree
Showing 18 changed files with 1,001 additions and 345 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
75 changes: 75 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: build
on:
push:
branches:
- 'develop'
pull_request:
release:
types: [published]

jobs:
build:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
target: [aarch64-unknown-linux-gnu, aarch64-unknown-linux-musl, x86_64-unknown-netbsd]
use-cross: [true]
include:
- target: x86_64-unknown-linux-gnu
use-cross: false
- target: x86_64-unknown-linux-musl
use-cross: false
- os: macos-12
target: aarch64-apple-darwin
- os: macos-12
target: x86_64-apple-darwin
- os: windows-2022
target: x86_64-pc-windows-msvc
- os: windows-2022
target: x86_64-pc-windows-gnu
runs-on: ${{ matrix.os || 'ubuntu-22.04'}}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
defaults:
run:
shell: bash -xe {0}
steps:
- name: Install musl tools
if: matrix.target == 'x86_64-unknown-linux-musl'
run: |
sudo apt-get install -y musl-tools --no-install-recommends
- uses: actions/checkout@f095bcc56b7c2baf48f3ac70d6d6782f4f553222
- uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746
with:
toolchain: stable
target: ${{ matrix.target }}
- uses: Swatinem/rust-cache@988c164c3d0e93c4dbab36aaf5bbeb77425b2894
with:
key: ${{ matrix.target }}
- uses: actions-rs/cargo@9e120dd99b0fbad1c065f686657e914e76bd7b72
with:
use-cross: ${{ !matrix.os && matrix.use-cross }}
command: build
args: --locked --release --target ${{ matrix.target }}
- uses: actions/upload-artifact@65d862660abb392b8c4a3d1195a2108db131dd05
with:
name: ${{ matrix.target }}
path: |
target/${{ matrix.target }}/release/pcsc-rs
target/${{ matrix.target }}/release/pcsc-rs.exe
- name: Upload to release
if: github.event_name == 'release'
working-directory: target/${{ matrix.target }}/release/
run: |
if [ -e pcsc-rs.exe ]; then
filename="pcsc-rs-${{ github.event.release.tag_name }}-${{ matrix.target }}.exe"
mv pcsc-rs.exe "$filename"
gh release upload ${{ github.event.release.tag_name }} "$filename"#${{ matrix.target }} --clobber
else
filename="pcsc-rs-${{ github.event.release.tag_name }}-${{ matrix.target }}"
mv pcsc-rs "$filename"
gh release upload ${{ github.event.release.tag_name }} "$filename"#${{ matrix.target }} --clobber
fi
24 changes: 24 additions & 0 deletions .github/workflows/do-not-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: DO NOT MERGE

on:
pull_request:
types:
- opened
- synchronize
- labeled
- unlabeled

permissions:
pull-requests: read

jobs:
do-not-merge:
name: '!!!'
runs-on: ubuntu-22.04
steps:
- run: |
if ${{ contains(github.event.pull_request.labels.*.name, 'do NOT merge!!!') }}; then
false
else
true
fi
16 changes: 16 additions & 0 deletions .github/workflows/security-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Security audit
on:
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
schedule:
- cron: '0 0 * * *'
jobs:
security_audit:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@f095bcc56b7c2baf48f3ac70d6d6782f4f553222
- uses: actions-rs/audit-check@35b7b53b1e25b55642157ac01b4adceb5b9ebef3
with:
token: ${{ secrets.GITHUB_TOKEN }}
54 changes: 54 additions & 0 deletions .github/workflows/versioning.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Versioning
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
versioning:
name: 'Versioning'
runs-on: ubuntu-22.04
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
steps:
- uses: actions/checkout@f095bcc56b7c2baf48f3ac70d6d6782f4f553222
with:
fetch-depth: 0
- name: Setup git
run: |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
git config push.default current
- run: |
version_string=$(awk -F'[ ="]+' '$1 ~ /^version/ { print $2; exit }' Cargo.toml)
pr=$( (git log --oneline @...v"$version_string" || git log --oneline) | sed -nE 's/.+\((#[0-9]+)\)$/\1/p')
labels=$( echo "$pr" | xargs -n1 gh pr view --json labels -q '.labels[].name')
mapfile -t version < <(printf '%s\n' "${version_string//./$'\n'}")
if printf '%s\n' "${labels[@]}" | grep -qx 'release'; then
exit 0
elif printf '%s\n' "${labels[@]}" | grep -qx 'semver:major'; then
((++version[0]))
version[1]=0
version[2]=0
elif printf '%s\n' "${labels[@]}" | grep -qx 'semver:minor'; then
((++version[1]))
version[2]=0
elif printf '%s\n' "${labels[@]}" | grep -qx 'semver:patch'; then
((++version[2]))
else
exit 0
fi
new_version_string=$(printf ".%s" "${version[@]}")
new_version_string=${new_version_string:1}
git switch -C release
VERSION=$new_version_string perl -i -pe 's/(version = ").+/\1$ENV{VERSION}"/ if !$done; $done ||= $&' Cargo.toml
cargo update -p "$(awk -F'[ ="]+' '$1 ~ /^name/ { print $2; exit }' Cargo.toml)"
echo -e "Release v${new_version_string}\n\nPR:\n${pr}" | git commit --no-gpg-sign -a --file=-
git push -f
gh pr create --base main --fill --label release || echo -e "PR:\n${pr}" | gh pr edit --title "Release v${new_version_string}" --body-file -
gh pr merge --auto --delete-branch --squash
Loading

0 comments on commit 32b6791

Please sign in to comment.