Skip to content

Commit

Permalink
output dir contents
Browse files Browse the repository at this point in the history
  • Loading branch information
Acetolyne committed Jan 4, 2024
1 parent 4eb056e commit 1d161f6
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# outputs:
# cache-key: ${{ steps.build-script.outputs.CACHE_KEY }}
outputs:
cache-key: ${{ steps.build-script.outputs.cache_key }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Expand All @@ -42,8 +42,7 @@
go test release_test.go
if [ `echo $?` -ne 0 ]; then exit 1; fi
ls bin/flowcat-darwin-arm64/
echo "${{ hashFiles('bin/flowcat-darwin-arm64/flowcat') }}"
echo "CACHE_KEY=${{ hashFiles('bin/flowcat-darwin-arm64/flowcat') }}" >> $GITHUB_ENV
echo "cache_key=${{ hashFiles('bin/flowcat-darwin-arm64/flowcat') }}" >> $GITHUB_OUTPUT
- name: upload-darwin-arm64-cache
id: darwin-arm64-cache
Expand All @@ -53,7 +52,7 @@
bin
bin/*
bin/flowcat-darwin-arm64/flowcat
key: ${{ hashFiles('bin/flowcat-darwin-arm64/flowcat') }}
key: ${{ steps.build-script.outputs.cache_key }}

# - name: upload-linux-386-cache
# id: linux-386-cache
Expand All @@ -76,23 +75,28 @@
# key: test


# release:
# name: "Release"
# needs: [build]
release:
name: "Release"
needs: [build]

# runs-on: "ubuntu-latest"
# env:
# CACHE_KEY: ${{ env.CACHE_KEY }}
runs-on: "ubuntu-latest"
env:
cache_key: ${{ needs.build.outputs.cache-key }}

# steps:
steps:
- name: get-cache-key
env:
cache_key: ${{ needs.build.outputs.cache-key }}
run: echo "$cache_key"

- name: get-cache
uses: actions/cache/restore@v3
with:
path: |
bin
bin/*
bin/flowcat-darwin-arm64/flowcat
key: ${{ github.env.GITHUB_ENV.CACHE_KEY }}
key: ${{ env.cache_key }}
#key: test

- name: "Determine tag"
Expand Down

0 comments on commit 1d161f6

Please sign in to comment.