Skip to content

fix

fix #83

Workflow file for this run

# SPDX-FileCopyrightText: 2023-2024 TII (SSRC) and the Ghaf contributors
#
# SPDX-License-Identifier: Apache-2.0
name: build
on:
push:
branches:
- '**'
workflow_dispatch:
pull_request_target:
branches:
- main
permissions:
contents: read
jobs:
build-yml-check:
uses: ./.github/workflows/build-yml-check.yml
build_target:
runs-on: ubuntu-latest
timeout-minutes: 360
name: Build FMO-OS
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true
# To use this repository's private action,
# you must check out the repository
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}
- name: Build
id: build
uses: ./.github/actions/build-action
with:
build_target: 'fmo-os-installer-debug'
CACHIX_TOKEN: ${{ secrets.CACHIX_TOKEN }}
RA_TOKEN: ${{ secrets.RA_TOKEN }}
- name: Upload Build Artifacts
run: |
echo "Output image is ${{ steps.build.outputs.outimg }}"
echo "Github workspace is: ${{ github.workspace }}"
echo "ls -l ${{ github.workspace }}: $(ls -l ${{ github.workspace }})"
echo "ls -l ${{ github.workspace }}/result: $(ls -l ${{ github.workspace }}/result)"
echo "ls -l ${{ github.workspace }}/result/iso: $(ls -l ${{ github.workspace }}/result/iso)"
echo "readlink -f ${{ github.workspace }}/result: $(readlink -f ${{ github.workspace }}/result)"
- name: Prepare artifactory for upload
uses: "jfrog/setup-jfrog-cli@v2"
- name: Push to artifactory
uses: ./.github/actions/upload-action
with:
JFROG_UNAME: ${{ secrets.JFROG_UNAME }}
JFROG_TOKEN: ${{ secrets.JFROG_TOKEN }}
JFROG_URL: ${{ secrets.JFROG_URL }}
input-paths: |
${{ github.workspace }}/${{ steps.build.outputs.outimg }}:tii-fmo-os/
# build_matrix:
# name: "build"
# needs: [build-yml-check]
# runs-on: [self-hosted, nixbuilder]
# timeout-minutes: 360
# strategy:
# matrix:
# include:
# - arch: x86_64-linux
# target: fmo-os-installer-debug
# if: |
# always() &&
# (1 || needs.build-yml-check.outputs.result == 'not-changed')
# concurrency:
# # Cancel any in-progress workflow runs from the same PR or branch,
# # allowing matrix jobs to run concurrently:
# group: ${{ github.workflow }}.${{ github.event.pull_request.number || github.ref }}.${{ matrix.arch }}.${{ matrix.target }}
# cancel-in-progress: true
# steps:
# - name: Print runner system info
# run: sudo apt-get update; sudo apt-get install -y inxi; sudo inxi -c0 --width -1 --basic --memory-short
# - name: Checkout
# uses: actions/checkout@v4
# with:
# ref: ${{ github.event.pull_request.head.sha || github.ref }}
# - name: Install nix
# uses: cachix/install-nix-action@v24
# with:
# extra_nix_config: |
# system-features = nixos-test benchmark big-parallel kvm
# - name: Build ${{ matrix.arch }}.${{ matrix.target }}
# run: |
# nix build .#packages.${{ matrix.arch }}.${{ matrix.target }}