etrombly / rust-crosscompile

docker for cross compiling rust gtk programs to windows
35 stars 6 forks source link

Doesn't work in Github Actions #6

Closed raphtlw closed 3 years ago

raphtlw commented 3 years ago

Just building a regular gtk-rs app, doesn't seem to be working :/

Using default tag: latest
latest: Pulling from etrombly/rust-crosscompile
ee7e89337106: Pulling fs layer
4d98f3e6d0f3: Pulling fs layer
21df9b6f8409: Pulling fs layer
9ae77258fd7c: Pulling fs layer
246ba6f33f4f: Pulling fs layer
1d79eb2bc0ce: Pulling fs layer
93da08564e8f: Pulling fs layer
acc42647b295: Pulling fs layer
64683d75f925: Pulling fs layer
ff3cc6cfc4ff: Pulling fs layer
93da08564e8f: Waiting
acc42647b295: Waiting
64683d75f925: Waiting
ff3cc6cfc4ff: Waiting
9ae77258fd7c: Waiting
1d79eb2bc0ce: Waiting
246ba6f33f4f: Waiting
4d98f3e6d0f3: Verifying Checksum
4d98f3e6d0f3: Download complete
21df9b6f8409: Verifying Checksum
21df9b6f8409: Download complete
9ae77258fd7c: Verifying Checksum
9ae77258fd7c: Download complete
ee7e89337106: Verifying Checksum
ee7e89337106: Download complete
1d79eb2bc0ce: Verifying Checksum
1d79eb2bc0ce: Download complete
acc42647b295: Verifying Checksum
acc42647b295: Download complete
64683d75f925: Verifying Checksum
64683d75f925: Download complete
ff3cc6cfc4ff: Verifying Checksum
ff3cc6cfc4ff: Download complete
246ba6f33f4f: Verifying Checksum
246ba6f33f4f: Download complete
93da08564e8f: Verifying Checksum
93da08564e8f: Download complete
ee7e89337106: Pull complete
4d98f3e6d0f3: Pull complete
21df9b6f8409: Pull complete
9ae77258fd7c: Pull complete
246ba6f33f4f: Pull complete
1d79eb2bc0ce: Pull complete
93da08564e8f: Pull complete
acc42647b295: Pull complete
64683d75f925: Pull complete
ff3cc6cfc4ff: Pull complete
Digest: sha256:9ade98a40915f72d32023fc8f037c2bb72161e939d209023c6f8b1f9ea11107e
Status: Downloaded newer image for etrombly/rust-crosscompile:latest
docker.io/etrombly/rust-crosscompile:latest
e0ba79dd242650ba70276516e96f3cf76668b5d830bb1a7f7c3d8fc6bf704201
    Updating crates.io index
 Downloading crates ...
  Downloaded sha-1 v0.9.2
  Downloaded version_check v0.9.2
  Downloaded httparse v1.3.4
  Downloaded num-traits v0.2.14
  Downloaded syn v0.15.44
  Downloaded relm-derive v0.20.0
  Downloaded toml v0.5.7
  Downloaded unicode-bidi v0.3.4
  Downloaded scopeguard v1.1.0
  Downloaded typenum v1.12.0
  Downloaded zip v0.5.8
  Downloaded once_cell v0.2.4
  Downloaded same-file v1.0.6
  Downloaded walkdir v2.3.1
  Downloaded utf-8 v0.7.5
  Downloaded winapi-util v0.1.5
  Downloaded socket2 v0.3.17
  Downloaded tungstenite v0.11.1
  Downloaded serde_json v1.0.59
  Downloaded itoa v0.4.6
  Downloaded lazy_static v1.4.0
  Downloaded input_buffer v0.3.1
  Downloaded native-tls v0.2.6
  Downloaded maybe-uninit v2.0.0
  Downloaded openssl-sys v0.9.58
  Downloaded pin-project v1.0.2
  Downloaded parking_lot_core v0.6.2
  Downloaded parking_lot v0.9.0
  Downloaded gdk v0.13.2
  Downloaded fern v0.6.0
  Downloaded glib v0.10.3
  Downloaded gtk-sys v0.10.0
  Downloaded chrono v0.4.19
  Downloaded itertools v0.9.0
  Downloaded http v0.2.1
  Downloaded gtk v0.9.2
  Downloaded tinyvec_macros v0.1.0
  Downloaded pango v0.9.1
  Downloaded unicode-segmentation v1.7.0
  Downloaded openssl v0.10.30
  Downloaded futures-util v0.3.8
  Downloaded syn v1.0.48
  Downloaded idna v0.2.0
  Downloaded flate2 v1.0.14
  Downloaded pin-project-internal v1.0.2
  Downloaded libc v0.2.80
  Downloaded gio-sys v0.10.1
  Downloaded once_cell v1.5.2
  Downloaded openssl-probe v0.1.2
  Downloaded opaque-debug v0.3.0
  Downloaded num-integer v0.1.44
  Downloaded log v0.4.11
  Downloaded lock_api v0.3.4
  Downloaded winapi v0.3.9
  Downloaded winapi-x86_64-pc-windows-gnu v0.4.0
  Downloaded serde v1.0.117
  Downloaded heck v0.3.1
  Downloaded getrandom v0.1.15
  Downloaded futures-task v0.3.8
  Downloaded futures-sink v0.3.8
  Downloaded futures-macro v0.3.8
  Downloaded futures-io v0.3.8
  Downloaded futures-executor v0.3.8
  Downloaded tinyvec v1.1.0
  Downloaded time v0.1.44
  Downloaded thiserror-impl v1.0.22
  Downloaded thiserror v1.0.22
  Downloaded serde_derive v1.0.117
  Downloaded futures-channel v0.3.8
  Downloaded form_urlencoded v1.0.0
  Downloaded foreign-types-shared v0.1.1
  Downloaded foreign-types v0.3.2
  Downloaded fnv v1.0.7
  Downloaded block-buffer v0.9.0
  Downloaded semver-parser v0.7.0
  Downloaded bytes v0.5.6
  Downloaded version-compare v0.0.10
  Downloaded unicode-normalization v0.1.16
  Downloaded strum_macros v0.18.0
  Downloaded strum v0.18.0
  Downloaded cairo-sys-rs v0.10.0
  Downloaded bitflags v1.2.1
  Downloaded atty v0.2.14
  Downloaded gobject-sys v0.10.0
  Downloaded url v2.2.0
  Downloaded unicode-xid v0.2.1
  Downloaded smallvec v0.6.13
  Downloaded slab v0.4.2
  Downloaded semver v0.9.0
  Downloaded schannel v0.1.19
  Downloaded rustc_version v0.2.3
  Downloaded memchr v2.3.4
  Downloaded adler32 v1.2.0
  Downloaded ryu v1.0.5
  Downloaded futures-core v0.3.8
  Downloaded either v1.6.1
  Downloaded dirs v3.0.1
  Downloaded digest v0.9.0
  Downloaded crc32fast v1.2.1
  Downloaded local_ipaddress v0.1.3
  Downloaded glib-macros v0.10.1
  Downloaded gdk-sys v0.10.0
  Downloaded gdk-pixbuf-sys v0.10.0
  Downloaded fs_extra v1.2.0
  Downloaded cfg-if v1.0.0
  Downloaded cfg-if v0.1.10
  Downloaded cc v1.0.63
  Downloaded bzip2 v0.3.3
  Downloaded byteorder v1.3.4
  Downloaded unicode-xid v0.1.0
  Downloaded system-deps v1.3.2
  Downloaded rand v0.7.3
  Downloaded proc-macro-hack v0.5.19
  Downloaded proc-macro-error-attr v1.0.4
  Downloaded pin-utils v0.1.0
  Downloaded percent-encoding v2.1.0
  Downloaded relm v0.20.0
  Downloaded matches v0.1.8
  Downloaded gio v0.9.1
  Downloaded generic-array v0.14.4
  Downloaded gdk-pixbuf v0.9.0
  Downloaded dirs-sys v0.3.5
  Downloaded base64 v0.12.3
  Downloaded autocfg v1.0.1
  Downloaded atk-sys v0.10.0
  Downloaded rand_core v0.5.1
  Downloaded quote v0.6.13
  Downloaded futures v0.3.8
  Downloaded cpuid-bool v0.1.2
  Downloaded rand_chacha v0.2.2
  Downloaded proc-macro2 v1.0.24
  Downloaded miniz_oxide v0.3.7
  Downloaded bzip2-sys v0.1.9+1.0.8
  Downloaded quote v1.0.7
  Downloaded proc-macro2 v0.4.30
  Downloaded proc-macro-nested v0.1.6
  Downloaded proc-macro-error v1.0.4
  Downloaded pangocairo-sys v0.11.0
  Downloaded pangocairo v0.10.0
  Downloaded pango-sys v0.10.0
  Downloaded glib-sys v0.10.1
  Downloaded colored v1.9.3
  Downloaded proc-macro-crate v0.1.5
  Downloaded ppv-lite86 v0.2.10
  Downloaded pkg-config v0.3.19
  Downloaded cairo-rs v0.9.1
  Downloaded anyhow v1.0.34
  Downloaded dns-lookup v1.0.5
  Downloaded atk v0.9.0
error: Permission denied (os error 13) at path "/home/rust/src/targetQAKW4l"
mkdir: cannot create directory 'package': Permission denied
cp: cannot stat 'target/x86_64-pc-windows-gnu/release/*.exe': No such file or directory
Error: File doesn't exist: package/*.exe
mkdir: cannot create directory 'package': Permission denied
mkdir: cannot create directory 'package': Permission denied
cp: cannot create directory 'package/share/glib-2.0': No such file or directory
cp: cannot create directory 'package/share/icons': No such file or directory
cp: cannot create directory 'package/share/themes': No such file or directory
/usr/bin/package.sh: line 19: package/share/gtk-3.0/settings.ini: No such file or directory
mingw-strip: 'package/*': No such file
    zip warning: name not matched: package/*

zip error: Nothing to do! (try: zip -r package.zip . -i package/*)
etrombly commented 3 years ago

It's because I use a different user inside the container instead of root. Your source directory probably does not allow others to write to it. I've been debating changing it back to just using root to build because of issues like this.

raphtlw commented 3 years ago

Hey @etrombly thanks for the quick reply. Is there anything I can do to fix it for now?

etrombly commented 3 years ago

If it were a local machine you could change the permissions on the source directory. I'm not sure with github actions.

raphtlw commented 3 years ago

Oh yay I fixed it by doing chmod -R 777 on the source directory, it isn't very safe but it'll do for now. Thanks for the help!

etrombly commented 3 years ago

Just pushed a change to have it build as root, the dockerhub build should take roughly an hour. You can check the status here https://hub.docker.com/repository/registry-1.docker.io/etrombly/rust-crosscompile/builds/021129f6-f2a0-472a-b9c4-976d25182183