Subversion Repositories Krakow BASIC

Rev

Rev 18 | Rev 20 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18 Rev 19
Line 33... Line 33...
33
      uses: actions/upload-artifact@v4
33
      uses: actions/upload-artifact@v4
34
      with:
34
      with:
35
        name: build-c64
35
        name: build-c64
36
        path: krakow-c64.80
36
        path: krakow-c64.80
37
 
37
 
-
 
38
  build-arduino:
-
 
39
    name: "Build for Arduino"
-
 
40
    runs-on: ubuntu-latest
-
 
41
 
-
 
42
    permissions:
-
 
43
      contents: write
-
 
44
 
-
 
45
    steps:
-
 
46
    - name: Checkout
-
 
47
      uses: actions/checkout@v4
-
 
48
    - name: Install packages
-
 
49
      run: sudo apt-get install avr-gcc
-
 
50
    - name: Make sure it is clean
-
 
51
      run: make clean PLATFORM=arduino
-
 
52
    - name: Make
-
 
53
      run: make PLATFORM=c64
-
 
54
    - name: Rename
-
 
55
      run: cp BASIC/krakow.hex krakow-arduino.hex
-
 
56
    - name: Upload artifact
-
 
57
      uses: actions/upload-artifact@v4
-
 
58
      with:
-
 
59
        name: build-arduino
-
 
60
        path: krakow-arduino.hex
-
 
61
 
38
  release:
62
  release:
39
    name: "Release"
63
    name: "Release"
40
    runs-on: ubuntu-latest
64
    runs-on: ubuntu-latest
41
 
65
 
42
    permissions:
66
    permissions:
43
      contents: write
67
      contents: write
44
 
68
 
45
    needs: [build-c64]
69
    needs: [build-c64, build-arduino]
46
 
70
 
47
    steps:
71
    steps:
48
    - name: Checkout
72
    - name: Checkout
49
      uses: actions/checkout@v4
73
      uses: actions/checkout@v4
50
    - name: Download from build-c64
74
    - name: Download from build-c64
51
      uses: actions/download-artifact@v4
75
      uses: actions/download-artifact@v4
52
      with:
76
      with:
53
        name: build-c64
77
        name: build-c64
-
 
78
    - name: Download from build-arduino
-
 
79
      uses: actions/download-artifact@v4
-
 
80
      with:
-
 
81
        name: build-arduino
54
    - name: Delete old release
82
    - name: Delete old release
55
      run: gh release delete "$(make get-version)" --cleanup-tag -y || true
83
      run: gh release delete "$(make get-version)" --cleanup-tag -y || true
56
      env:
84
      env:
57
        GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85
        GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58
    - name: Release
86
    - name: Release
59
      run: gh release create -t "v$(make get-version)" "$(make get-version)" krakow-c64.80 -n "Version \`$(make get-version)\` was build in this release"
87
      run: gh release create -t "v$(make get-version)" "$(make get-version)" krakow-c64.80 krakow-arduino.hex -n "Version \`$(make get-version)\` was build in this release"
60
      env:
88
      env:
61
        GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89
        GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}