Skip to content

Commit

Permalink
Migrate CI and builds to Just, add "full" builds (#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
passcod authored Jan 8, 2023
1 parent 305bf81 commit aea9df6
Show file tree
Hide file tree
Showing 30 changed files with 717 additions and 463 deletions.
52 changes: 52 additions & 0 deletions .github/actions/just-setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Setup tools and cache
inputs:
tools:
description: Extra tools
required: false
default: ""
cache:
description: Enable caches
required: true
default: true
type: boolean
cache-suffix:
description: Suffix for cache key
required: false
default: ""
runs:
using: composite
steps:
- if: inputs.tools == ''
name: Install just
uses: taiki-e/install-action@v2
with:
tool: just
- if: inputs.tools != ''
name: Install just and tools
uses: taiki-e/install-action@v2
with:
tool: just,${{ inputs.tools }}

- if: inputs.cache
name: Configure index cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}-${{ inputs.cache-suffix }}
restore-keys: |
${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}-
${{ runner.os }}-cargo-index-
- if: inputs.cache
name: Configure build cache
uses: actions/cache@v3
with:
path: |
target/
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ inputs.cache-suffix }}
restore-keys: |
${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}-
6 changes: 0 additions & 6 deletions .github/scripts/install-deps.sh

This file was deleted.

17 changes: 0 additions & 17 deletions .github/scripts/pack-release-archives.sh

This file was deleted.

126 changes: 0 additions & 126 deletions .github/scripts/tests.sh

This file was deleted.

149 changes: 0 additions & 149 deletions .github/workflows/build.yml

This file was deleted.

Loading

0 comments on commit aea9df6

Please sign in to comment.