Compare commits

...

30 Commits

Author SHA1 Message Date
Anne de Jong 152d6d635d Apparently path may not be absolute. What a inflexible release system!
Building, testing and releasing LASP if it has a tag / Build-Test-Ubuntu (push) Successful in 2m38s Details
Building, testing and releasing LASP if it has a tag / Release-Ubuntu (push) Has been skipped Details
2023-10-16 15:54:08 +02:00
Anne de Jong de3ef1b4c1 Apparently path may not be absolute. What a inflexible release system!
Building, testing and releasing LASP if it has a tag / Build-Test-Ubuntu (push) Failing after -1m26s Details
Building, testing and releasing LASP if it has a tag / Release-Ubuntu (push) Has been skipped Details
2023-10-16 15:53:06 +02:00
Anne de Jong 5ca899fa0a Volume not mounted absolute, but in repo.
Building, testing and releasing LASP if it has a tag / Build-Test-Ubuntu (push) Failing after -1m26s Details
Building, testing and releasing LASP if it has a tag / Release-Ubuntu (push) Has been skipped Details
2023-10-16 15:43:17 +02:00
Anne de Jong ab103b74f7 Set working directory correct for release action. Is apparently required
Building, testing and releasing LASP if it has a tag / Build-Test-Ubuntu (push) Successful in 2m36s Details
Building, testing and releasing LASP if it has a tag / Release-Ubuntu (push) Failing after -32s Details
2023-10-16 15:36:15 +02:00
Anne de Jong a72284880d Twice container key
Building, testing and releasing LASP if it has a tag / Build-Test-Ubuntu (push) Successful in 2m44s Details
Building, testing and releasing LASP if it has a tag / Release-Ubuntu (push) Failing after -35s Details
2023-10-16 15:28:11 +02:00
Anne de Jong 67ff10b5e5 Forgot dash 2023-10-16 15:26:42 +02:00
Anne de Jong 5b76ff007c Added volumes 2023-10-16 15:24:20 +02:00
Anne de Jong 592448eea9 Release when tag. That is the only way the release action is working
Building, testing and releasing LASP if it has a tag / Build-Test-Ubuntu (push) Failing after 2m41s Details
Building, testing and releasing LASP if it has a tag / Release-Ubuntu (push) Has been skipped Details
2023-10-16 15:17:00 +02:00
Anne de Jong 402425ebd1 Test with only release. Removed last line
Building and releasing LASP (master branch) / Build-Test-Ubuntu (push) Successful in 2m45s Details
Building and releasing LASP (master branch) / Release-Ubuntu (push) Failing after -1m23s Details
2023-10-16 14:58:00 +02:00
Anne de Jong 07b2d97e7a Sigh. requires go 1.18
Building and releasing LASP (master branch) / Build-Test-Ubuntu (push) Successful in 2m34s Details
Building and releasing LASP (master branch) / Release-Ubuntu (push) Failing after -24s Details
2023-10-16 14:26:02 +02:00
Anne de Jong db9a1a28a5 Volumes should be specified in runner config
Building and releasing LASP (master branch) / Build-Test-Ubuntu (push) Successful in 2m38s Details
Building and releasing LASP (master branch) / Release-Ubuntu (push) Failing after -47s Details
2023-10-16 14:14:36 +02:00
Anne de Jong 24f849d9ee Should be host volume
Building and releasing LASP (master branch) / Build-Test-Ubuntu (push) Failing after 2m29s Details
Building and releasing LASP (master branch) / Release-Ubuntu (push) Has been skipped Details
2023-10-16 13:49:04 +02:00
Anne de Jong bcbb5b0720 More explicit name of volume
Building and releasing LASP (master branch) / Build-Test-Ubuntu (push) Failing after 2m27s Details
Building and releasing LASP (master branch) / Release-Ubuntu (push) Has been skipped Details
2023-10-16 13:44:55 +02:00
Anne de Jong bf6a18bcf8 Use a volume to share state
Building and releasing LASP (master branch) / Build-Test-Ubuntu (push) Failing after 2m43s Details
Building and releasing LASP (master branch) / Release-Ubuntu (push) Has been skipped Details
2023-10-16 13:37:18 +02:00
Anne de Jong 749d5354c9 Install golang manually
Building and releasing LASP (master branch) / Build-Test-Ubuntu (push) Successful in 2m39s Details
Building and releasing LASP (master branch) / Release-Ubuntu (push) Failing after 16s Details
2023-10-13 12:30:31 +02:00
Anne de Jong 941b83abe8 Try with catthehacker image
Building and releasing LASP (master branch) / Build-Test-Ubuntu (push) Successful in 2m46s Details
Building and releasing LASP (master branch) / Release-Ubuntu (push) Failing after -1m9s Details
2023-10-13 11:34:10 +02:00
Anne de Jong 7857c3aed5 Go v3?
Building and releasing LASP (master branch) / Build-Test-Ubuntu (push) Successful in 2m53s Details
Building and releasing LASP (master branch) / Release-Ubuntu (push) Failing after -52s Details
2023-10-13 11:26:36 +02:00
Anne de Jong 5565b10fb2 Upload and download artifact test 2
Building and releasing LASP (master branch) / Build-Test-Ubuntu (push) Successful in 2m53s Details
Building and releasing LASP (master branch) / Release-Ubuntu (push) Failing after -1m6s Details
2023-10-12 16:28:02 +02:00
Anne de Jong 44c3782b46 Apparently release action requires golang
Building and releasing LASP (master branch) / Build-Test-Ubuntu (push) Successful in 2m43s Details
Building and releasing LASP (master branch) / Release-Ubuntu (push) Failing after 32s Details
2023-10-11 18:14:32 +02:00
Anne de Jong abbb3fee2c Specify release action from gitea
Building and releasing LASP (master branch) / Build-Test-Ubuntu (push) Successful in 2m45s Details
Building and releasing LASP (master branch) / Release-Ubuntu (push) Failing after -1m8s Details
2023-10-11 18:04:43 +02:00
Anne de Jong 02b95f9aa8 Upload / download artifact. Test2
Building and releasing LASP (master branch) / Build-Test-Ubuntu (push) Successful in 3m23s Details
Building and releasing LASP (master branch) / Release-Ubuntu (push) Failing after -1m9s Details
2023-10-11 17:36:44 +02:00
Anne de Jong b9c42c1c24 Checkout before
Building and releasing LASP (master branch) / Build-Test-Ubuntu (push) Failing after 2m38s Details
Building and releasing LASP (master branch) / Release-Ubuntu (push) Failing after -1m10s Details
2023-10-11 17:26:02 +02:00
Anne de Jong 2206f47cff Forgot pytest
Building and releasing LASP (master branch) / Release-Ubuntu (push) Has been cancelled Details
Building and releasing LASP (master branch) / Build-Test-Ubuntu (push) Has been cancelled Details
2023-10-11 17:24:08 +02:00
Anne de Jong 03513b6502 With upload and download artifacts - now with yaml syntax correct
Building and releasing LASP (master branch) / Release-Ubuntu (push) Has been cancelled Details
Building and releasing LASP (master branch) / Build-Test-Ubuntu (push) Has been cancelled Details
2023-10-11 17:23:31 +02:00
Anne de Jong 8ef5fd5a64 With upload and download artifacts 2023-10-11 17:22:35 +02:00
Anne de Jong bab69c8018 Sigh............... Does this work?
Building and releasing LASP (master branch) / Build-Test-Ubuntu (push) Failing after 2m28s Details
Building and releasing LASP (master branch) / Release-Ubuntu (push) Failing after -1m15s Details
2023-10-11 17:18:09 +02:00
Anne de Jong 6be9e14c13 Sigh............... Does this work? 2023-10-11 17:13:59 +02:00
Anne de Jong 78181ebca9 Split two files. No other way possible?
Building and releasing LASP (master branch) / Build-Test-Release-Ubuntu (push) Failing after 2m4s Details
2023-10-11 17:03:55 +02:00
Anne de Jong 9b44ff7262 if on different level
Building and testing LASP / Build-Test-Ubuntu (push) Successful in 1m55s Details
Building and testing LASP / Release-Ubuntu (push) Failing after -1m10s Details
2023-10-11 16:45:04 +02:00
Anne de Jong 1bf32fe81d gitub ref?
Building and testing LASP / Build-Test-Ubuntu (push) Successful in 2m5s Details
Building and testing LASP / Release-Ubuntu (push) Failing after -1m9s Details
2023-10-11 16:21:12 +02:00
1 changed files with 27 additions and 9 deletions

View File

@ -1,33 +1,51 @@
name: Building and testing LASP
name: Building, testing and releasing LASP if it has a tag
on:
push:
- push
jobs:
Build-Test-Ubuntu:
runs-on: ubuntu-latest
container: ascee/ubuntu_build:latest
container:
image: ascee/ubuntu_build:latest
volumes:
- lasp_dist:/dist
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Build
- name: Build and test
run: |
pip install build
pip install build pytest
python3 -m build
pip install dist/lasp*.whl
pytest
- name: Copy dist files to /dist dir
run:
cp -v dist/* /dist
Release-Ubuntu:
runs-on: ubuntu-latest
container: ascee/ubuntu_build:latest
container:
volumes:
- lasp_dist:/dist
needs: Build-Test-Ubuntu
if: startsWith(gitea.ref, 'refs/tags/v')
steps:
- name: Checkout
uses: actions/checkout@v4
- name: setup go
uses: https://github.com/actions/setup-go@v4
with:
go-version: '1.18'
- name: Release
uses: https://gitea.com/actions/release-action@main
working-directory: "/"
with:
files: |-
dist/**
../../../../../dist/**
api_key: '${{secrets.RELEASE_TOKEN}}'
if: gitea.ref == 'refs/heads/master'