-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: try to switch CI/CD to ubuntu github-hosted runner
- Loading branch information
1 parent
f14460a
commit ab41a0f
Showing
6 changed files
with
55 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,30 +11,39 @@ on: | |
|
||
jobs: | ||
Compile-All: | ||
runs-on: macos-12 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Maximize Build Space | ||
uses: easimon/maximize-build-space@v10 | ||
with: | ||
root-reserve-mb: 512 | ||
swap-size-mb: 1024 | ||
remove-dotnet: "true" | ||
|
||
- name: Review Build Space | ||
run: | | ||
echo "Free space:" | ||
df -h | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Cache Vagrant boxes | ||
uses: actions/[email protected] | ||
- name: Install Nix | ||
uses: cachix/install-nix-action@v26 | ||
with: | ||
path: ~/.vagrant.d/boxes | ||
key: $${{ runner.os }}-vagrant-${{ hashFiles('Vagrantfile') }} | ||
restore-keys: | | ||
${{ runner.os }}-vagrant- | ||
github_access_token: ${{ secrets.GITHUB_TOKEN }} | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
|
||
- name: Show Vagrant version | ||
run: vagrant --version | ||
- uses: DeterminateSystems/magic-nix-cache-action@v6 | ||
|
||
- name: Run vagrant up & provision | ||
- name: Compile TextMate Grammar | ||
run: | | ||
vagrant plugin install vagrant-disksize | ||
vagrant up --provision | ||
env: | ||
VER: 23.05 | ||
chmod +x ./scripts/compile-grammar.sh | ||
./scripts/compile-grammar.sh | ||
- name: Get Coverage Badge SVG | ||
run: make -B $(pwd)/images/coverage-badge.svg | ||
- name: Compile Coverage Badge SVG | ||
run: | | ||
apt-get install -y xsltproc | ||
make -B $(pwd)/images/coverage-badge.svg | ||
- name: Import GPG key | ||
id: import-gpg | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
let | ||
lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.nixpkgs.locked; | ||
in | ||
import (fetchTarball { | ||
url = "https://github.com/nixos/nixpkgs/archive/${lock.rev}.tar.gz"; | ||
sha256 = lock.narHash; | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env nix-shell | ||
#!nix-shell ../shell.nix -i bash | ||
# compile-grammar.sh - Builds TextMate grammar with help of Nix. | ||
|
||
# shellcheck shell=sh | ||
set -e | ||
|
||
|
||
scriptPath="$(readlink -f $0)" | ||
rootDir=$(dirname "${scriptPath%/*}") | ||
|
||
statix check | ||
nix flake check --impure "$rootDir" | ||
|
||
cp $(nix build --impure \ | ||
--no-link \ | ||
--print-out-paths "$rootDir")/parigp* "$rootDir/syntaxes/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters