Skip to content

Commit

Permalink
build initial
Browse files Browse the repository at this point in the history
  • Loading branch information
jsvapiav committed Mar 15, 2024
1 parent 5456ef7 commit 5f1f285
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .github/actions/build-n-upload-action/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#!/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

cd $GITHUB_WORKSPACE

nix flake show
nix build .#$BUILD_TARGET

# echo "ls=$(ls)" >> $GITHUB_OUTPUT
# echo "status=$(git log)" >> $GITHUB_OUTPUT
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down

0 comments on commit 5f1f285

Please sign in to comment.