Skip to content

Commit 66fa250

Browse files
Adds a Justfile and a composite action.
Now we are testing rust-latin, comment out the bad tests so it passes.
1 parent 576c11b commit 66fa250

File tree

10 files changed

+365
-464
lines changed

10 files changed

+365
-464
lines changed

.github/actions/setup/action.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Common steps we do in most of our jobs
2+
3+
name: Setup a Job
4+
5+
inputs:
6+
criticalup:
7+
description: 'Install Criticalup'
8+
required: false
9+
default: ""
10+
channel:
11+
description: 'Rust channel'
12+
required: false
13+
default: "stable"
14+
cache:
15+
description: "Workspace to cache with Swatinem/rust-cache@v2"
16+
required: false
17+
default: ""
18+
target:
19+
description: "Extra target for rustup to install"
20+
required: false
21+
default: ""
22+
23+
runs:
24+
using: "composite"
25+
steps:
26+
- name: Install CriticalUp (optional)
27+
if: ${{ inputs.criticalup != '' }}
28+
shell: bash
29+
env:
30+
CRITICALUP_VERSION: ${{ inputs.criticalup }}
31+
run: |
32+
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/ferrocene/criticalup/releases/download/${CRITICALUP_VERSION}/criticalup-installer.sh | sh
33+
- name: Install Just 1.42
34+
uses: extractions/setup-just@v3
35+
with:
36+
just-version: 1.42
37+
- name: Update Rust
38+
shell: bash
39+
run: |
40+
rustup set profile minimal
41+
rustup update ${RUSTUP_CHANNEL} --no-self-update
42+
rustup default ${RUSTUP_CHANNEL}
43+
env:
44+
RUSTUP_CHANNEL: ${{ inputs.channel }}
45+
- name: Install Target
46+
if: ${{ inputs.target != '' }}
47+
shell: bash
48+
env:
49+
RUSTUP_TARGET: ${{ inputs.target }}
50+
run: |
51+
rustup target add ${RUSTUP_TARGET}
52+
- name: Setup Rust Cache
53+
if: ${{ inputs.cache != '' }}
54+
uses: Swatinem/rust-cache@v2
55+
with:
56+
workspaces: ${{ inputs.cache }}

0 commit comments

Comments
 (0)