@@ -13,20 +13,20 @@ jobs:
13
13
strategy :
14
14
fail-fast : false
15
15
matrix :
16
- name : [AMD64, i386, arm]
17
- platformflags : [""]
18
- platformtools : [""]
19
- emulator : [""]
16
+ name : [AMD64, i386, arm, aarch64]
20
17
include :
21
18
- name : i386
22
19
platformflags : -m32
23
20
- name : arm
24
21
platformtools : arm-linux-gnueabi
25
22
emulator : qemu-arm
26
- name : build-linux-gnu (${{matrix.name}})
23
+ - name : aarch64
24
+ platformtools : aarch64-linux-gnu
25
+ emulator : qemu-aarch64
26
+ # name: build-linux-gnu (${{matrix.name}})
27
27
env :
28
28
PLATFORMFLAGS : ${{matrix.platformflags}}
29
- PLATFORM_PREFIX : ${{matrix.platformtools}}-
29
+ PLATFORM_PREFIX : ${{matrix.platformtools}}
30
30
EMULATOR : ${{matrix.emulator}}
31
31
steps :
32
32
- uses : actions/checkout@v2
@@ -51,69 +51,51 @@ jobs:
51
51
name : ${{ env.abiname }}
52
52
path : lib/${{ env.abiname }}/libstackman.a
53
53
54
- build-linux-arm :
55
- if : 0
56
- runs-on : ubuntu-latest
57
- strategy :
58
- fail-fast : true
59
- matrix :
60
- include :
61
- - arch : arm
62
- emulator : qemu-arm
63
- abi : arm-linux-gnueabi
64
- - arch : aarch64
65
- emulator : qemu-aarch64
66
- abi : aarch64-linux-gnu
67
- name : test-linux-arm (${{matrix.arch}})
68
- env :
69
- PLATFORM_PREFIX : ${{matrix.abi}}-
70
- EMULATOR : ${{matrix.emulator}}
71
- steps :
72
- - uses : actions/checkout@v2
73
- - name : install qemu
74
- run : sudo apt-get install --no-install-recommends -y qemu-user
75
- - name : install abi lib
76
- run : sudo apt-get install --no-install-recommends -y gcc-${{matrix.abi}} g++-${{matrix.abi}}
77
- - name : make
78
- run : make all
79
- - name : test
80
- run : make test
81
- - name : Commit libraries
82
- run : |
83
- git config --global user.name 'Build Runner'
84
- git config --global user.email 'buildrunner@users.noreply.github.com'
85
- git add lib/*.a
86
- git diff-index --quiet HEAD || git commit -m "Automated build"
87
- git push
88
-
89
54
build-windows :
90
- if : 0
91
55
runs-on : windows-2019
92
56
strategy :
93
57
fail-fast : true
94
58
matrix :
95
- platform : [x86, x64, ARM, ARM64 ]
59
+ platform : [x86, x64, arm, arm64 ]
96
60
include :
97
61
- platform : x86
98
62
folder : Win32
99
63
native : yes
100
64
- platform : x64
101
65
folder : x64
102
66
native : yes
67
+ - platform : arm
68
+ folder : arm
69
+ - platform : arm64
70
+ folder : arm64
71
+
103
72
steps :
104
73
- uses : actions/checkout@v2
105
- - name : Add msbuild to PATH
106
- uses : microsoft/setup-msbuild@v1.0.2
74
+ - uses : microsoft/setup-msbuild@v1.0.2
107
75
- name : build
108
76
run : msbuild.exe vs2019\stackman.sln /p:Platform=${{matrix.platform}}
109
77
- name : test
110
78
if : ${{ matrix.native == 'yes' }}
111
79
run : vs2019\${{matrix.folder}}\Debug\test.exe
112
- - name : Commit libraries
113
- run : |
114
- git config --global user.name 'Build Runner'
115
- git config --global user.email 'buildrunner@users.noreply.github.com'
116
- git add lib/*.lib
117
- git diff-index --quiet HEAD || git commit -m "Automated build"
118
- git push
119
-
80
+ - name : Upload build artifacts
81
+ uses : actions/upload-artifact@v2
82
+ with :
83
+ name : win_${{ matrix.platform }}
84
+ path : lib/win_${{matrix.platform}}/stackman.lib
85
+
86
+ commit-artifacts :
87
+ runs-on : ubuntu-latest
88
+ needs : [build-linux-gnu, build-windows]
89
+ steps :
90
+ - uses : actions/checkout@v2
91
+ - uses : actions/download-artifact@v2
92
+ with :
93
+ path : lib
94
+
95
+ - name : Commit changes
96
+ run : |
97
+ git config --global user.name 'Automation tool'
98
+ git config --global user.email 'automation-tool@users.noreply.github.com'
99
+ git add lib/*.a lib/*.lib
100
+ git diff-index --quiet HEAD || git commit -m "Automated build"
101
+
0 commit comments