Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeByAidan committed Nov 7, 2023
1 parent c35f028 commit fe5a9fe
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ jobs:
gcc -o ${{ env.BUILD_DIR }}/largeintcalculator largeintcalculator.c
# On Windows, rename the executable to .exe
if [[ "$RUNNER_OS" == "Windows" ]]; then
mv ${{ env.BUILD_DIR }}/largeintcalculator ${{ env.BUILD_DIR }}/largeintcalculator.exe
mv ${{ env.BUILD_DIR }}/largeintcalculator.exe ${{ env.BUILD_DIR }}/windows
elif [[ "$RUNNER_OS" == "Linux" ]]; then
mv ${{ env.BUILD_DIR }}/largeintcalculator ${{ env.BUILD_DIR }}/ubuntu
elif [[ "$RUNNER_OS" == "macOS" ]]; then
mv ${{ env.BUILD_DIR }}/largeintcalculator ${{ env.BUILD_DIR }}/macos
fi
working-directory: ${{ github.workspace }}

Expand All @@ -44,4 +48,13 @@ jobs:
elif [[ "$RUNNER_OS" == "macOS" ]]; then
mv ${{ env.BUILD_DIR }}/largeintcalculator ${{ env.BUILD_DIR }}/macos
fi
working-directory: ${{ github.workspace }}
run: |
mkdir -p ${{ env.BUILD_DIR }}/windows ${{ env.BUILD_DIR }}/ubuntu ${{ env.BUILD_DIR }}/macos
if [[ "$RUNNER_OS" == "Windows" ]]; then
mv ${{ env.BUILD_DIR }}/largeintcalculator.exe ${{ env.BUILD_DIR }}/windows
elif [[ "$RUNNER_OS" == "Linux" ]]; then
mv ${{ env.BUILD_DIR }}/largeintcalculator ${{ env.BUILD_DIR }}/ubuntu
elif [[ "$RUNNER_OS" == "macOS" ]]; then
mv ${{ env.BUILD_DIR }}/largeintcalculator ${{ env.BUILD_DIR }}/macos
fi
working-directory: ${{ github.workspace }}

0 comments on commit fe5a9fe

Please sign in to comment.