|
21 | 21 | build: |
22 | 22 | strategy: |
23 | 23 | matrix: |
24 | | - runtime: [ linux-x64, linux-arm64, linux-arm, win-x64, win-arm64, osx-x64, osx-arm64 ] |
| 24 | + runtime: [ win-x64, win-arm64 ] |
25 | 25 | include: |
26 | | - - runtime: linux-x64 |
27 | | - os: ubuntu-latest |
28 | | - devScript: ./dev.sh |
29 | | - |
30 | | - - runtime: linux-arm64 |
31 | | - os: ubuntu-latest |
32 | | - devScript: ./dev.sh |
33 | | - |
34 | | - - runtime: linux-arm |
35 | | - os: ubuntu-latest |
36 | | - devScript: ./dev.sh |
37 | | - |
38 | | - - runtime: osx-x64 |
39 | | - os: macOS-latest |
40 | | - devScript: ./dev.sh |
41 | | - |
42 | | - - runtime: osx-arm64 |
43 | | - os: macOS-latest |
44 | | - devScript: ./dev.sh |
45 | | - |
46 | 26 | - runtime: win-x64 |
47 | 27 | os: windows-latest |
48 | 28 | devScript: ./dev |
|
66 | 46 | run: | |
67 | 47 | ${{ matrix.devScript }} test |
68 | 48 | working-directory: src |
69 | | - if: matrix.runtime != 'linux-arm64' && matrix.runtime != 'linux-arm' && matrix.runtime != 'osx-arm64' && matrix.runtime != 'win-arm64' |
| 49 | + if: matrix.runtime == 'win-x64' |
70 | 50 |
|
71 | 51 | # Create runner package tar.gz/zip |
72 | 52 | - name: Package Release |
|
78 | 58 | # Upload runner package tar.gz/zip as artifact |
79 | 59 | - name: Publish Artifact |
80 | 60 | if: github.event_name != 'pull_request' |
81 | | - uses: actions/upload-artifact@v7 |
| 61 | + uses: actions/upload-artifact@v6 |
82 | 62 | with: |
83 | 63 | name: runner-package-${{ matrix.runtime }} |
84 | 64 | path: | |
85 | 65 | _package |
86 | | -
|
87 | | - docker: |
88 | | - strategy: |
89 | | - matrix: |
90 | | - os: [ ubuntu-latest, ubuntu-24.04-arm ] |
91 | | - include: |
92 | | - - os: ubuntu-latest |
93 | | - docker_platform: linux/amd64 |
94 | | - - os: ubuntu-24.04-arm |
95 | | - docker_platform: linux/arm64 |
96 | | - runs-on: ${{ matrix.os }} |
97 | | - steps: |
98 | | - - uses: actions/checkout@v6 |
99 | | - |
100 | | - - name: Get latest runner version |
101 | | - id: latest_runner |
102 | | - uses: actions/github-script@v8 |
103 | | - with: |
104 | | - github-token: ${{secrets.GITHUB_TOKEN}} |
105 | | - script: | |
106 | | - const release = await github.rest.repos.getLatestRelease({ |
107 | | - owner: 'actions', |
108 | | - repo: 'runner', |
109 | | - }); |
110 | | - const version = release.data.tag_name.replace(/^v/, ''); |
111 | | - core.setOutput('version', version); |
112 | | -
|
113 | | - - name: Setup Docker buildx |
114 | | - uses: docker/setup-buildx-action@v4 |
115 | | - |
116 | | - - name: Build Docker image |
117 | | - uses: docker/build-push-action@v7 |
118 | | - with: |
119 | | - context: ./images |
120 | | - load: true |
121 | | - platforms: ${{ matrix.docker_platform }} |
122 | | - tags: | |
123 | | - ${{ github.sha }}:latest |
124 | | - build-args: | |
125 | | - RUNNER_VERSION=${{ steps.latest_runner.outputs.version }} |
126 | | -
|
127 | | - - name: Test Docker image |
128 | | - run: | |
129 | | - docker run --rm ${{ github.sha }}:latest ./run.sh --version |
130 | 66 | |
0 commit comments