mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 12:46:42 +01:00
remove caching from release flow
This commit is contained in:
parent
39ab736cbe
commit
610b6b4353
1 changed files with 0 additions and 30 deletions
|
|
@ -12,42 +12,12 @@ jobs:
|
||||||
- run: git clone --depth 1 --recursive $GITHUB_SERVER_URL/$GITHUB_REPOSITORY .
|
- run: git clone --depth 1 --recursive $GITHUB_SERVER_URL/$GITHUB_REPOSITORY .
|
||||||
- run: whoami && pwd && tree && cloc src/ && cloc .
|
- run: whoami && pwd && tree && cloc src/ && cloc .
|
||||||
|
|
||||||
- id: cache
|
|
||||||
name: cache restore
|
|
||||||
uses: https://data.forgejo.org/actions/cache/restore@v4
|
|
||||||
with:
|
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
path: |
|
|
||||||
~/.cargo/bin/
|
|
||||||
~/.cargo/registry/index/
|
|
||||||
~/.cargo/registry/cache/
|
|
||||||
~/.cargo/git/db/
|
|
||||||
target/
|
|
||||||
|
|
||||||
- name: cache hit
|
|
||||||
if: steps.cache.outputs.cache-hit == 'true'
|
|
||||||
run: echo "cache hit! :)"
|
|
||||||
- name: cache miss
|
|
||||||
if: steps.cache.outputs.cache-miss != 'true'
|
|
||||||
run: echo "cache miss! :("
|
|
||||||
|
|
||||||
- run: rustup-init -y
|
- run: rustup-init -y
|
||||||
- run: source "$HOME/.cargo/env" && rustup install nightly && rustup default nightly && cargo version -vv
|
- run: source "$HOME/.cargo/env" && rustup install nightly && rustup default nightly && cargo version -vv
|
||||||
#- run: source "$HOME/.cargo/env" && RUSTFLAGS="-Ctarget-feature=-crt-static" just doc
|
#- run: source "$HOME/.cargo/env" && RUSTFLAGS="-Ctarget-feature=-crt-static" just doc
|
||||||
- run: source "$HOME/.cargo/env" && RUSTFLAGS="-Ctarget-feature=-crt-static" just test
|
- run: source "$HOME/.cargo/env" && RUSTFLAGS="-Ctarget-feature=-crt-static" just test
|
||||||
- run: source "$HOME/.cargo/env" && RUSTFLAGS="-Ctarget-feature=-crt-static" just build-release
|
- run: source "$HOME/.cargo/env" && RUSTFLAGS="-Ctarget-feature=-crt-static" just build-release
|
||||||
|
|
||||||
- name: cache save
|
|
||||||
uses: https://data.forgejo.org/actions/cache/save@v4
|
|
||||||
with:
|
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
path: |
|
|
||||||
~/.cargo/bin/
|
|
||||||
~/.cargo/registry/index/
|
|
||||||
~/.cargo/registry/cache/
|
|
||||||
~/.cargo/git/db/
|
|
||||||
target/
|
|
||||||
|
|
||||||
- run: tree && mkdir -p .release && mv -v target/release/tek .release
|
- run: tree && mkdir -p .release && mv -v target/release/tek .release
|
||||||
|
|
||||||
- name: publish release
|
- name: publish release
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue