-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 956 Bytes
/
release.yml
File metadata and controls
42 lines (33 loc) · 956 Bytes
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
34
35
36
37
38
39
40
41
42
name: Build and Release ISO on Tag
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: Install build dependencies
run: sudo apt update && sudo apt install -y build-essential xorriso
- name: Add Rust kernel target
run: rustup target add x86_64-unknown-none
- name: Install rust-src component
run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
- name: Build ISO image
run: make iso
- name: Create GitHub Release and upload ISO
uses: softprops/action-gh-release@v2
with:
files: serix.iso
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}