Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instruction how to use containers with github actions #16

Open
qarmin opened this issue Jun 6, 2022 · 1 comment
Open

Add instruction how to use containers with github actions #16

qarmin opened this issue Jun 6, 2022 · 1 comment

Comments

@qarmin
Copy link

qarmin commented Jun 6, 2022

I wanted to integrate this repository into my project CI, but for now I have no idea how could I do this (qarmin/czkawka#749).
Currently I stopped on this code

name: 🏁 Windows
on:
  push:
  pull_request:
  schedule:
    - cron: '0 0 * * 2'

env:
  CARGO_TERM_COLOR: always

jobs:
  container:
    runs-on: ubuntu-latest
    container: mglolenstine/gtk4-cross:rust-gtk-4.6
    steps:
      - run: |
          echo This job does specify a container.
          echo It runs in the container instead of the VM.
          git clone https://github.com/qarmin/czkawka.git
          build
          zip -r gtk_app.zip target/x86_64-pc-windows-gnu/release/czkawka_gui.exe
        name: Run in container
      - name: Store Windows GUI CrossComplile
        uses: actions/upload-artifact@v2
        with:
          name: czkawka_gui-release-console-${{ matrix.toolchain }}
          path: gtk_app.zip

which shows error

/usr/bin/build: line 4: /github/home/.cargo/env: No such file or directory
@MGlolenstine
Copy link
Owner

I think that this was mentioned before here.
I'll look into getting it integrated.
It is a bug though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants