Skip to content

Commit 31b1366

Browse files
committed
update ci
fix test ci revert to original release action
1 parent a9cb896 commit 31b1366

File tree

5 files changed

+15
-3
lines changed

5 files changed

+15
-3
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ jobs:
5353
timeout-minutes: 90
5454
permissions:
5555
contents: write
56+
57+
env:
58+
SCCACHE_GHA_ENABLED: "true"
59+
RUSTC_WRAPPER: "sccache"
5660
steps:
5761
- uses: actions/checkout@v4
5862

@@ -73,6 +77,9 @@ jobs:
7377
toolchain: nightly
7478
override: true
7579

80+
- name: Run sccache-cache
81+
uses: mozilla-actions/sccache-action@v0.0.5
82+
7683
- run: sudo apt install musl-tools
7784
if: startsWith(matrix.os, 'ubuntu')
7885

.github/workflows/test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Test
33
on:
44
pull_request:
55
workflow_dispatch:
6-
tag:
7-
types:
8-
- created
6+
push:
7+
tags:
8+
- "**"
99

1010
jobs:
1111
test:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Type `git-se -h` and `git-se [subcommand] -h` to get more information.
5151
- `git add -A` is automatically executed when encrypting, so make sure that `.gitignore` is handled properly.
5252
- Do not add files with `.zst`, `.enc` suffixes and folders containing them to the encrypted list.
5353
- To delete file/dir from encrypt list, edit `git_simple_encrypt.toml`.
54+
- encrypt/decrypt will keep the file metadata unchanged (unix permission and timestamp).
5455

5556
## Algorithm
5657

docs/README_zh-CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ git-se d 'src/*' # 部分解密
5151
- 加密时会自动执行 `git add -A`,请确保已妥善处理 `.gitignore`
5252
- 请不要将 `.zst`, `.enc` 后缀的文件以及包含它们的文件夹添加到加密列表中。
5353
- 如果您需要从加密列表中删除文件(夹),请手动编辑 `git_simple_encrypt.toml`
54+
- 加密解密会保持文件元数据,例如权限和时间戳。
5455

5556
## 原理
5657

rust-toolchain.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[toolchain]
2+
channel = "nightly"
3+
components = ["rustfmt", "clippy", "rust-src"]

0 commit comments

Comments
 (0)