-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 957 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Build
on:
push:
branches:
- '**'
pull_request: {}
jobs:
install-criticalup-build-run-my-app:
name: Install CriticalUp, Install Ferrocene, Build and Run my app
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Make sure CriticalUp is installed and available
shell: bash
run: |
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/ferrocene/criticalup/releases/latest/download/criticalup-installer.sh | sh
- name: Test if CriticalUp is installed
run: |
criticalup --help
- name: Authenticate CriticalUp
run: |
criticalup auth set ${{ secrets.CRITICALUP_TOKEN }}
- name: Install Ferrocene toolchain from the project manifest (criticalup.toml)
run: |
criticalup install
- name: Run my app via Ferrocene and its toolchain
run: |
criticalup run cargo run --release