Migrate to Gitea Actions

This commit is contained in:
Rafal Kupiec 2023-07-19 20:26:07 +02:00
parent efcb8c8a73
commit b9f1aaa033
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
2 changed files with 31 additions and 21 deletions

View File

@ -1,21 +0,0 @@
matrix:
platform:
- amd64
- i686
pipeline:
build:
image: codingworkshop/oscw-runner:latest
commands:
- echo "charch ${platform} && ./configure.sh && cd build-${platform}-xtchain && ninja -v && ninja diskimg -v" > build.cmds
- xtchain < build.cmds
publish:
image: codingworkshop/oscw-runner:latest
secrets:
- OSCW_ARTIFACTS_HOSTNAME
- OSCW_ARTIFACTS_USERNAME
- OSCW_ARTIFACTS_USERKEY
commands:
- tar -I 'gzip' -cpf ExectOS-$(date +'%Y%m%d')-${CI_COMMIT_SHA:0:10}-${platform}.tar.gz -C build-${platform}-xtchain/output/binaries .
- gzip -c build-${platform}-xtchain/output/disk.img > ExectOS-$(date +'%Y%m%d')-${CI_COMMIT_SHA:0:10}-${platform}.img.gz
- artifact_publish "ExectOS-$(date +'%Y%m%d')-${CI_COMMIT_SHA:0:10}-${platform}.*.gz" ExectOS

31
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,31 @@
name: Builds
run-name: ${{ github.actor }} runs Gitea Actions
on: [push]
jobs:
ExectOS:
strategy:
matrix:
arch: [amd64, i686]
runs-on: oscw
container:
image: codingworkshop/oscw-runner:latest
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Build ExectOS
run: |
echo "charch ${{ matrix.arch }} && ./configure.sh && cd build-${{ matrix.arch }}-xtchain && ninja -v && ninja diskimg -v" > build.cmds
xtchain < build.cmds
- name: Publish binaries
if: ${{ github.ref == 'refs/heads/master' }}
env:
OSCW_ARTIFACTS_HOSTNAME: ${{ secrets.OSCW_ARTIFACTS_HOSTNAME }}
OSCW_ARTIFACTS_USERNAME: ${{ secrets.OSCW_ARTIFACTS_USERNAME }}
OSCW_ARTIFACTS_USERKEY: ${{ secrets.OSCW_ARTIFACTS_USERKEY }}
run: |
tar -I 'gzip' -cpf ExectOS-$(date +'%Y%m%d')-${GITHUB_SHA:0:10}-${{ matrix.arch }}.tar.gz -C build-${{ matrix.arch }}-xtchain/output/binaries .
gzip -c build-${{ matrix.arch }}-xtchain/output/disk.img > ExectOS-$(date +'%Y%m%d')-${GITHUB_SHA:0:10}-${{ matrix.arch }}.img.gz
artifact_publish "ExectOS-$(date +'%Y%m%d')-${GITHUB_SHA:0:10}-${{ matrix.arch }}.*.gz" ExectOS