Skip to content

Commit 368bcfc

Browse files
committed
Add basic files - with SDDM
0 parents  commit 368bcfc

97,415 files changed

Lines changed: 1109609 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Build and Release ISO
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
repository-projects: write
15+
container:
16+
image: archlinux/archlinux:latest
17+
options: --privileged
18+
19+
steps:
20+
- name: Checkout repository using git
21+
run: |
22+
pacman -Sy git sudo archiso grub --noconfirm
23+
git clone --recurse-submodules https://github.com/${{ github.repository }} StratOS-iso
24+
25+
- name: Set up environment
26+
run: |
27+
export BUILD_DATE=$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y.%m.%d)
28+
echo "BUILD_DATE=${BUILD_DATE}" >> $GITHUB_ENV
29+
echo "::set-output name=date::${BUILD_DATE}"
30+
31+
- name: Build ISO
32+
id: build_iso
33+
run: |
34+
cd StratOS-iso
35+
sudo bash ./build.sh
36+
37+
- name: Create GitHub Release
38+
id: create_release
39+
uses: actions/create-release@latest
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
with:
43+
tag_name: v${{ env.BUILD_DATE }}
44+
release_name: v${{ env.BUILD_DATE }}
45+
body: |
46+
Automated release powered by GitHub Actions.
47+
48+
- name: Upload ISO as Release Asset
49+
id: upload_asset
50+
uses: actions/upload-release-asset@latest
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
with:
54+
upload_url: ${{ steps.create_release.outputs.upload_url }}
55+
asset_path: StratOS-iso/output/StratOS-${{ env.BUILD_DATE }}-x86_64.iso
56+
asset_name: StratOS-${{ env.BUILD_DATE }}-x86_64.iso
57+
asset_content_type: application/octet-stream

.github/workflows/deploy_yml_bak

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release ISO
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
- name: Install Archlinux
14+
run: |
15+
# sudo apt -y update
16+
# sudo apt install sudo
17+
curl -L https://raw.githubusercontent.com/zstg/github-actions-archlinux/master/install.sh | sudo bash
18+
19+
- name: Checkout repository using git
20+
run: |
21+
# pacman -Sy git sudo archiso --noconfirm
22+
git clone --recurse-submodules https://github.com/zstg/StratOS-iso
23+
24+
- name: Build ISO
25+
id: build_iso
26+
run: |
27+
cd StratOS-iso
28+
export BUILD_DATE=$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y.%m.%d)
29+
# sudo mount -t proc proc /__w/StratOS-iso/StratOS-iso/StratOS-iso/output/x86_64/airootfs/proc
30+
# sudo chmod +x ./build.sh
31+
su -c 'chmod +x ./build.sh && bash ./build.sh' # admin perms required to mount /proc
32+
echo "::set-output name=date::${BUILD_DATE}"
33+
34+
- name: Upload
35+
uses: ncipollo/release-action@v1
36+
with:
37+
artifacts: "output/*.iso"
38+
token: ${{ secrets.GITHUB_TOKEN }}
39+
tag: ${{ steps.build.outputs.date }}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
output/*
2+
!output/StratOS-*.iso
3+
output.bak/
4+
*.iso

0 commit comments

Comments
 (0)