Jump to content

micwoj92

Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

micwoj92's Achievements

Seeker

Seeker (1/7)

3

Reputation

  1. name: wnw11 # just a name, not really important on: [push, pull_request, workflow_dispatch] # runs workflow on: commit push, pull request and last options allows to trigger it manually jobs: build: runs-on: windows-latest # specify windows version, windows-2019 and 2016 are available at the time of writing, latest uses latest available steps: - uses: actions/checkout@v2 # check outs repository under $GITHUB_WORKSPACE - name: Cache tools uses: actions/cache@v2 # cache paths specified below so they don't have to be redownloaded each time id: cache with: path: | autoit-v3-setup.exe SciTE4AutoIt3.exe C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper key: v2 # cache key, simple change (for example to v3) to redownload, can also be used to roll back to older versions of downloaded programs - name: Download tools if: steps.cache.outputs.cache-hit != 'true' # downloads tools if they are not in cache run: | curl -sSfLO https://www.autoitscript.com/cgi-bin/getfile.pl?autoit3/autoit-v3-setup.exe ` -sSfLO https://www.autoitscript.com/cgi-bin/getfile.pl?../autoit3/scite/download/SciTE4AutoIt3.exe ` -sSfLO https://www.autoitscript.com/autoit3/scite/download/Au3Stripper.zip Expand-Archive Au3Stripper.zip "${env:ProgramFiles(x86)}\AutoIt3\SciTE\Au3Stripper" - name: Install tools # self explanatory, installs tools run: | Start-Process autoit-v3-setup.exe -ArgumentList /S -NoNewWindow -Wait Start-Process SciTE4AutoIt3.exe -ArgumentList /S -NoNewWindow -Wait - name: Compile # this just compiles, Start-Process is used because AutoIt returns to CMD before finishing. Definitely much better solution than start-sleep used before. run: | Start-Process "${env:ProgramFiles(x86)}\AutoIt3\AutoIt3.exe" "`"${env:ProgramFiles(x86)}\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3`" /NoStatus /prod /in WhyNotWin11.au3" -NoNewWindow -Wait sha256sum -b WhyNotWin*.exe > checksums.sha256 # output shasums of file so people are sure that the files are genuine - uses: actions/upload-artifact@v2 # uploads artifacts so they can be accessed to download with: name: WNW11 path: | WhyNotWin11*.exe checksums.sha256 if-no-files-found: error # error if no files found, default is warn, error also sends you email by default - name: Zip package # this step creates one zip with all files if: startsWith(github.ref, 'refs/tags/') # runs setp only on release (github tag) run: 7z a WhyNotWin11.zip WhyNotWin11*.exe checksums.sha256 # this uses 7z to make the zip - name: Release # uploads files specified below on release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: files: | WhyNotWin11*.exe WhyNotWin11.zip checksums.sha256 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GitHub runners are just windows server datacenter virtual machines All the "uses:" things are just github repositories, for for example if you want to check out what "softprops/action-gh-release@v1" is and read more documentation on it , then you just go to "https://github.com/softprops/action-gh-release" Bare minimum for this to work is the download + install tools step and compile step, it will simply test if your code compiles Official GitHub actions documentations is available at https://docs.github.com/en/actions
  2. @mLipok No, there is this function before in CI which caches the files. If you want to download again, you'd have to change the key. for example v3 or something. Then I think that you can also go back to old caches when you change number to old one. - name: Cache tools uses: actions/cache@v2 id: cache with: path: | autoit-v3-setup.exe SciTE4AutoIt3.exe C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper key: v2 This is done in this step, just a standard install as you would do in command line on Windows. - name: Install tools run: | Start-Process autoit-v3-setup.exe -ArgumentList /S -NoNewWindow -Wait Start-Process SciTE4AutoIt3.exe -ArgumentList /S -NoNewWindow -Wait Au3stripper is unpacked in previous step `Expand-Archive Au3Stripper.zip "${env:ProgramFiles(x86)}\AutoIt3\SciTE\Au3Stripper"` I mean, it can be done, but what would be the benefit of using it instead of the installer? I will post this code with comments, what's necessary and not etc. here soon, so will be easier to understand.
  3. Also, the CI has been improved dramatically since WNW11, so it might be worth posting updated version here.
  4. Hello, I'm the guy who made initial CI and I think using chocolatey to install autoit3 could be better, would look much cleaner. Has anyone here worked with autoit3 installing from chocolatey? I don't use Windows so every change that was needed to do was (almost) a blind guess and I'm honestly surprised that it works (more or less). Rcmaehl has been a big help with his Windows expertise (and it's his project after all).
×
×
  • Create New...