Skip to content

Commit

Permalink
Update c-cpp.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jelacicedin authored Apr 22, 2024
1 parent d5e6db5 commit 4554ac7
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,27 @@ jobs:
- name: Archive the build outputs
run: |
# Ensure you are in the right directory
# Display current directory
echo "Current directory:"
pwd
ls -la ..
# Replace 'output_folder' with the correct path to where your build outputs are stored
tar -czvf myproject-${{ github.sha }}.tar.gz ../output_folder/
# List contents of the current directory
echo "Contents of the current directory:"
ls -la
# Change to the project root if not already there
cd ${{ github.workspace }}/dynamorio-missing-instructions
# Confirm the change and list contents
echo "Changed to project root directory:"
pwd
ls -la
# If the output folder is directly in the project root, adjust the path accordingly
# Assuming the output directory is 'build' (modify as needed)
if [ -d "build" ]; then
echo "Building tar from 'build' directory"
tar -czvf myproject-${{ github.sha }}.tar.gz build/
else
echo "Build directory does not exist."
exit 1
fi
- name: Create Release
id: create_release
Expand Down

0 comments on commit 4554ac7

Please sign in to comment.