diff --git a/.github/actions/build-n-upload-action/entrypoint.sh b/.github/actions/build-n-upload-action/entrypoint.sh index eb16380..ae98ffc 100755 --- a/.github/actions/build-n-upload-action/entrypoint.sh +++ b/.github/actions/build-n-upload-action/entrypoint.sh @@ -1,6 +1,8 @@ #!/bin/sh -l -echo "Hello $1" +BUILD_TARGET=$1 + +echo "build target: $BUILD_TARGET" time=$(date) echo "time=$time" >> $GITHUB_OUTPUT echo "pwd=$GITHUB_WORKSPACE" >> $GITHUB_OUTPUT @@ -8,6 +10,7 @@ echo "pwd=$GITHUB_WORKSPACE" >> $GITHUB_OUTPUT cd $GITHUB_WORKSPACE nix flake show +nix build .#$BUILD_TARGET # echo "ls=$(ls)" >> $GITHUB_OUTPUT # echo "status=$(git log)" >> $GITHUB_OUTPUT diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 407cc44..d9f86e2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,15 +27,13 @@ jobs: uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha || github.ref }} - - name: run git log - run: echo $PWD && git log -5 - - name: Hello world action step - id: hello + - name: Build + id: build uses: ./.github/actions/build-n-upload-action with: - who-to-greet: 'Mona the Octocat' + build_target: 'fmo-os-installer-debug' # Use the output from the `hello` step - - name: Get the output time + - name: Upload Build Artifacts run: | echo "The time was ${{ steps.hello.outputs.time }}" echo "The pwd was ${{ steps.hello.outputs.pwd }}"