GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - NeuralSystem/parser: A small demonstration on how to use our Github actions to run your CI on WSL

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

32 Commits
32 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.gitignore
.gitignore
 
 
LICENCE.md
LICENCE.md
 
 
README.md
README.md
 
 
src.py
src.py
 
 
test.py
test.py
 
 

Repository files navigation

Example usage of WSL Github actions

Code quality Code quality License

Over at the Ubuntu/WSL repository, we developed some GitHub actions to make your life easier when running your CI in WSL. This is needed because GitHub runners do not support WSL. Just setting up an Azure VM will not cut it either, because the runner will run in session 0, which means that Microsoft Store applications such as WSL cannot be run.

How to run your CI on WSL

  1. Set up a Windows machine to run your CI in. GitHub runners won't do the job, but Azure VMs will.
  2. Set up an auto-logon in your Windows machine. See here for a step-by-step guide.
  3. Add the GitHub runner as a startup application (specifically, the run.cmd batch file in your actions runner).

You're done! Your CI yaml files will need some extra work, however, as you need to allocate and deallocate the VM on demand. The runner needs to run on Windows and not directly on WSL, as WSL instances will shut themselves down automatically, so we implemented some utilities to install and update WSL and the distro, as well as to run scripts.

You can find these actions and some more in-depth explanation for the setup here.

What is this repo?

This repository contains a very simple library src.py with a function that returns different results inside and outside WSL. To test it properly, we run a test on each platform:

  • Ubuntu in a GitHub Runner: test.yaml
  • Ubuntu in WSL: test_wsl.yaml

About

A small demonstration on how to use our Github actions to run your CI on WSL

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.