Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Update windows.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyFire authored Oct 29, 2023
1 parent 993a0c5 commit 55601ef
Showing 1 changed file with 4 additions and 36 deletions.
40 changes: 4 additions & 36 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:

jobs:
build:
runs-on: windows-2022
runs-on: windows-latest

steps:
#git checkout
Expand All @@ -43,9 +43,9 @@ jobs:
#make
choco install -y make
#cmake
choco install -y cmake
choco install -y cmake --pre
#openssl
choco install -y openssl
choco install -y openssl --version=1.1.1.3
#git bash shell
shell: bash

Expand All @@ -62,36 +62,4 @@ jobs:
- name: Create Upload File Name
run: |
echo "ARCHIVE_FILENAME=${{ github.event.repository.name }}-$(git rev-parse --short HEAD).zip" >> $env:GITHUB_ENV
- name: Archive files
run: |
#data is in Release folder
cd ${{github.workspace}}/build/bin
dir
copy c:/mysql/lib/libmysql.dll ${{github.workspace}}/build/bin/RelWithDebInfo/libmysql.dll
copy "c:/Program Files/OpenSSL-Win64/bin/libssl-1_1-x64.dll" ${{github.workspace}}/build/bin/RelWithDebInfo/libssl-1_1-x64.dll
copy "c:/Program Files/OpenSSL-Win64/bin/libcrypto-1_1-x64.dll" ${{github.workspace}}/build/bin/RelWithDebInfo/libcrypto-1_1-x64.dll
7z a -tzip ${{env.ARCHIVE_FILENAME}} RelWithDebInfo
- name: Archive this artefact
uses: actions/upload-artifact@v2
with:
name: snapshot-devbuild
path: "${{github.workspace}}/build/bin/${{env.ARCHIVE_FILENAME}}"

- name: Download artifact snapshot-Release
uses: actions/download-artifact@v1
with:
name: snapshot-devbuild
path: all_snapshots

- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"

- name: Upload snapshot
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build(${{ steps.date.outputs.date }})"
files: all_snapshots

0 comments on commit 55601ef

Please sign in to comment.