@@ -48,7 +48,7 @@ async function buildx() {
4848 'version' ,
4949 ] ) . then ( async ( ) => {
5050 // install buildx
51- core . startGroup ( 'install buildx ' ) ;
51+ core . startGroup ( 'setup qemu ' ) ;
5252 await exec . exec ( 'docker' , [
5353 'run' ,
5454 '--rm' ,
@@ -62,7 +62,7 @@ async function buildx() {
6262 core . startGroup ( 'list /proc/sys/fs/binfmt_misc' ) ;
6363 await exec . exec ( 'ls -la' , [
6464 '/proc/sys/fs/binfmt_misc' ,
65- ] ) ;
65+ ] ) . catch ( ( ) => { } ) ;
6666 core . endGroup ( ) ;
6767
6868 core . startGroup ( 'create buildx instance' ) ;
@@ -94,15 +94,15 @@ async function buildx() {
9494async function run ( ) {
9595 const platform = os . platform ( ) ;
9696
97- if ( platform === 'windows ' ) {
97+ if ( platform === 'win32 ' ) {
9898 core . debug ( 'check platform' ) ;
9999 await exec . exec ( 'echo' ,
100100 [ `Only Support Linux and macOS platform, this platform is ${ os . platform ( ) } ` ] ) ;
101101
102102 return
103103 }
104104
105- if ( platform !== 'linux ') {
105+ if ( platform === 'darwin ') {
106106 // macos
107107 await exec . exec ( 'docker' , [
108108 '--version' ] ) . catch ( ( ) => { } ) ;
@@ -114,20 +114,20 @@ async function run() {
114114 await exec . exec ( 'brew' , [
115115 'cask' ,
116116 'install' ,
117- 'docker'
117+ DOCKER_CHANNEL !== 'stable' ? 'docker-edge' : 'docker'
118118 ] ) ;
119119 core . endGroup ( ) ;
120120
121121 await exec . exec ( 'mkdir' , [
122122 '-p' ,
123- '/home /runner/.docker'
123+ '/Users /runner/.docker'
124124 ] ) ;
125125
126- await shell ( `echo '${ DOCKER_DAEMON_JSON } ' | sudo tee /home /runner/.docker/daemon.json` ) ;
126+ await shell ( `echo '${ DOCKER_DAEMON_JSON } ' | sudo tee /Users /runner/.docker/daemon.json` ) ;
127127
128128 core . startGroup ( 'show daemon json content' ) ;
129129 await exec . exec ( 'cat' , [
130- '/home /runner/.docker/daemon.json' ,
130+ '/Users /runner/.docker/daemon.json' ,
131131 ] ) ;
132132 core . endGroup ( ) ;
133133
0 commit comments