Skip to content

Commit

Permalink
IMPR: artifact upload in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ser-mk committed Sep 8, 2023
1 parent 50a66e6 commit b03aab2
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
cmake -B ${{github.workspace}}/build -DCMAKE_TOOLCHAIN_FILE=REMCU/platform/macos_darwin_x64.cmake; echo 0
- name: Configure CMake
run: |
run: |
rm -rf ${{github.workspace}}/build
export SYSTEM_VERSION_COMPAT=1
echo "\n\n\n ==== SYSTEM_VERSION_COMPAT $SYSTEM_VERSION_COMPAT \nn\n\n\n\n"
Expand All @@ -68,6 +68,13 @@ jobs:
export SYSTEM_VERSION_COMPAT=1
echo "\n\n\n ==== SYSTEM_VERSION_COMPAT $SYSTEM_VERSION_COMPAT \nn\n\n\n\n"
cmake --build ${{github.workspace}}/build
- uses: actions/upload-artifact@v3
with:
name: build_folder
path: ${{github.workspace}}/build/
if-no-files-found: error


- name: Commit & push
if: github.actor == 'ser-mk'
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/raspberry_pi_armv6_bcm2708.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ jobs:
- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build


- uses: actions/upload-artifact@v3
with:
name: build_folder
path: ${{github.workspace}}/build/
if-no-files-found: error


- name: Commit & push
if: github.actor == 'ser-mk'
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ jobs:
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build


- uses: actions/upload-artifact@v3
with:
name: build_folder
path: ${{github.workspace}}/build/
if-no-files-found: error


- name: Commit & push
if: github.actor == 'ser-mk'
run: |
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,18 @@ jobs:
- name: Configure CMake
run: |
cmake -B "D:\build" -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=REMCU/platform/windows_x64_clang.cmake
cmake -B build -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=REMCU/platform/windows_x64_clang.cmake
- name: Build
# Build your program with the given configuration
run: |
cmake --build "D:\build"
cmake --build build
- uses: actions/upload-artifact@v3
with:
name: build_folder
path: build/
if-no-files-found: error


- name: Commit & push
Expand All @@ -67,10 +73,9 @@ jobs:
git clone https://ser-mk:${{ secrets.TOKEN_PUSH }}@github.com/remotemcu/prebuilt_libraries.git
git config --global user.email "[email protected]"
git config --global user.name "Evgeny Chormonov"
cp -rf /d/build/output/* prebuilt_libraries/
cp -rf build/output/* prebuilt_libraries/
cd prebuilt_libraries/
git add .
git status
git commit -m "update windows" || true
git push origin master

0 comments on commit b03aab2

Please sign in to comment.