1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 08:17:13 +03:00

228 Commits

Author SHA1 Message Date
Athanasius
41505736ac
Change the submodule GH workflow back to on-push to develop 2023-04-16 11:05:21 +01:00
Athanasius
ee5931db4a
windows-build: Revert WinSparkle DLL to 32-bit, not 64-bit
Some testing of 64-bit builds must have accidentally left this in place.
2023-01-20 11:46:57 +00:00
Athanasius
48a80411b4
windows-build/tar: Make archive at .. and then mv into 'root'
* Because the archive is a new file in the root it causes:

    `tar: EDMarketConnector: file changed as we read it`

  Verified on Linux/Debian, and also verified that this fix works.
2023-01-12 13:47:41 +00:00
Athanasius
2678d7d63f
windows-build/tar: New job needs to depend on variables 2023-01-12 13:10:43 +00:00
Athanasius
bcfcc8c71c
windows-build/tar: tar needs to be in job *after* variables
At least we had `-f EDMarketConnector-release-.tar.gz ` which implies the
`needs.variables.outputs.sem_ver` variable wasn't yet set.
2023-01-12 13:06:53 +00:00
Athanasius
a00c6f789a
windows-build/tar: Adjust argument ordering
`-C ..` applies to anything that happens after it, so needs to be after the
`-f <file>`.
2023-01-12 13:03:06 +00:00
Athanasius
d52f161dc9
windows-build/tar: run, not script. 2023-01-12 12:58:10 +00:00
Athanasius
048be66f54
windows-build/tar: Just run a tar command ourselves directly
thedoctor0/zip-release has a bug where only the first word in `exclusions`
has `--exclude=` pre-pended to it, the other words being treated as input
filenames/globs/paths.  So, let's do this manually.
2023-01-12 12:54:19 +00:00
Athanasius
042c8d4ff2
windows-build/tar: Move to running under ubuntu
* On windows specifying only filenames to exclusions causes things like
  `tar: .editorconfig: Cannot stat: No such file or directory`

  But putting `EDMarketConnector/` prefix on such means they don't work.

* Testing with 'git bash' GNU tar 1.34:

  `tar -c -v -z -f edmc-test.tar.gz --exclude=.editorconfig --exclude=.git\* EDMarketConnector`

  works, with empty output from:

  `tar tfvz edmc-test.tar.gz | grep editorconfig`
2023-01-12 12:34:44 +00:00
Athanasius
3e05f91949
windows-build/tar: Now we have directory we *do* need exclusion paths
* Maybe I was wrong about not needing the prefix path on tar exclusions,
  because that was when I'd not copied `directory`.
2023-01-12 12:18:09 +00:00
Athanasius
15ee894142
windows-build/archives: Re-order to very early, add directory to tar
* I'd missed copying the `directory` line from zip to tar step.
* There's no reason we can't perform these steps *before* the build, or
  even the python setup, so move them up there.  That has the near side-effect
  of not needing to exclude so much stuff.
2023-01-12 12:14:00 +00:00
Athanasius
7098479902
windows-build/tar: Different specification of exclusions 2023-01-12 12:03:51 +00:00
Athanasius
43d10ab29a
windows-build/archives: Can't multiple setOutput, use env instead
* As the archive exclusions is static, we can just set it in workflow env.
2023-01-12 11:53:17 +00:00
Athanasius
4edebf981f
windows-build/archives: Create .tar.gz as well
* Move the definition of archive excludes to a global variable.
* Add another step to create a tar(.gz) archive as well.
* Add .tar.gz to the `Built files` handling.
2023-01-12 11:39:35 +00:00
Athanasius
64b1a4afd6
windows-build/custom zip: Add comment about the "too long args" issue 2023-01-11 18:10:18 +00:00
Athanasius
804b450c82
windows-build: Custom zip: Reduce exclusions
It *seems* we don't need to specify both a directory and its contents.

Also, hopefully this will fix the:

    Creating zip archive...

    Command Line Error:
    Unknown switch:
    -

which the last run got.  That was where the 'root' directory prefix was
added to all exclusions.  Maybe the commandline got too long ?
2023-01-11 13:19:04 +00:00
Athanasius
0c0c14166d
windows-build: custom zip exclusions need 'root' prefix
Also, comment out exactly what we're doing in the zip-release configuration,
and why.
2023-01-11 12:58:05 +00:00
Athanasius
531c839d13
windows-build: Specify custom zip to be in the 'root' directory
zip-release does indeed create this in `directory`, so we need to specify
it should be *in* the 'root' directory that we're including *in* the zip file.
2023-01-11 12:46:28 +00:00
Athanasius
2531e6de23
windows-build: Can't use relative path for upload-artifact
So, let's *hope* that zip-release still puts the .zip it creates in the
main directory, despite being told to create it from the parent.
2023-01-11 12:38:08 +00:00
Athanasius
35b5a90409
windows-build: Custom zip: Include top-level directory, and exclude more 2023-01-11 12:27:17 +00:00
Athanasius
c48cfeca5d
windows-build: Fix 'needs' reference to windows_build job 2023-01-11 12:12:30 +00:00
Athanasius
c8e6285a13
windows-build: Create a custom release .zip 2023-01-11 12:05:53 +00:00
Athanasius
a67609696c
windows-build: Properly name the build job 2023-01-11 11:36:54 +00:00
Athanasius
b678985fa6
github: windows-build: Use x64 versions of WinSparkle files 2022-12-23 15:45:02 +00:00
Athanasius
3d53b1a54d
github/mypy: Specifically run for win32 platform 2022-12-23 15:24:45 +00:00
Athanasius
e70b3c99f2
github/push-checks: Correct the job name, from build 2022-12-23 15:18:32 +00:00
Athanasius
8bacbf77ff
github/push-checks: Run on any branch except main, stable, beta, releases 2022-12-23 15:11:56 +00:00
Athanasius
841ae2006e
mypy: Add script to run against all, and use in github/push-checks 2022-12-23 15:06:47 +00:00
Athanasius
a9695aa1ee
github/submodule-update: Direct actions/checkout to use develop 2022-12-18 13:10:45 +00:00
Athanasius
ceed5886a8
github/submodule-update: Disable push/develop trigger 2022-12-17 13:02:48 +00:00
Athanasius
6ec68c5034
github/submodule-update: Reference env as a context thing. 2022-12-17 12:59:20 +00:00
Athanasius
f27d0bf74d
github/submodule-update: Tweak reference to PR_AGAINST_BRANCH 2022-12-17 12:56:11 +00:00
Athanasius
c3100b1fd5
github/submodule-update: Also run on develop pushes 2022-12-17 12:50:48 +00:00
Athanasius
273962e679
github/submodule-update: Move back to using our defined env
We need to run against `develop`, even when on `main` using a cron, so
actually use the environment vars we define.
2022-12-17 12:50:13 +00:00
Athanasius
414f9d8dae
github/submodule-update: Use single 0 in cron spec
Just in case that `00` was the issue.  It ran fine with `10 * * * *`.
2022-12-17 12:50:12 +00:00
Athanasius
06d83399c0
Revert "github/submodule-update: Run *every* hour for test purposes"
This reverts commit ee1c739ee15208980ea0554e9b172b614ec18869.
2022-12-17 12:50:11 +00:00
Athanasius
de16284b25
github/submodule-update: Run *every* hour for test purposes 2022-12-17 12:50:11 +00:00
Athanasius
70a9c7d8ab
github/submodule-update: Run every day at mid-day. 2022-12-17 11:30:56 +00:00
Athanasius
640223472b
github/submodule-update: Remove unused 'Add labels' step
1. This was commented out.
2. It's not necessarily up to date with what *works*, so just delete it.
2022-12-17 11:26:51 +00:00
Athanasius
8fab1fa811
github/submodule-update: Make better branch names 2022-12-17 11:25:16 +00:00
Athanasius
130bda0cc9
github/submodule-update: Try to use git status output in PR body 2022-12-17 11:21:03 +00:00
Athanasius
424e9754b1
github/submodule-update: Let's try github contexts 2022-12-17 11:14:18 +00:00
Athanasius
a68c23e525
github/submodule-update: Fix process.env syntax ? 2022-12-17 09:59:17 +00:00
Athanasius
8831d15220
github/submodule-update: Switch to process.env for owner, repo, base 2022-12-17 09:56:40 +00:00
Athanasius
e0f6f35311
github/submodule-update: Change to secrets.GITHUB_TOKEN
That works in the windows-build.yml workflow.
2022-12-17 09:48:21 +00:00
Athanasius
acbb8b2294
github/submodule-update: Switch to 'environment' style
As per <https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter>
2022-12-17 09:42:22 +00:00
Athanasius
ede69a9012
github/submodule-update: steps.check_for_changes condition not working
* Now I'm guessing at what the syntax needs to be, but the bare
  `steps.check_for_changes.outputs.changes` results in it being considerd
  `null` for the check.
2022-12-17 09:34:33 +00:00
Athanasius
859fe81d71
github/submodule-update: Ensure exit 0 on the update check
I *think* the `exit 0` is to ensure the 'Check for changes' isn't considered
failed due to `git` exit code.
2022-12-16 17:27:13 +00:00
Athanasius
3e0da4b537
github/submodule-update: Needs an 'else' to actually work
* Somehow this had been left in a state where it would always signal
  "no changes".
2022-12-16 17:24:11 +00:00
Athanasius
4cea8fa34f
github/push-checks: Align flake8 with what's working in pr-checks 2022-12-04 16:55:45 +00:00