Skip to content

Commit 60d6904

Browse files
committed
WIP
1 parent bca7651 commit 60d6904

File tree

2 files changed

+125
-125
lines changed

2 files changed

+125
-125
lines changed

.github/actions/easy_compile/action.yml

Lines changed: 77 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -20,83 +20,83 @@ inputs:
2020
runs:
2121
using: "composite"
2222
steps:
23-
- name: Checkout easy compile # TODO this can be removed once this tool is pusblished on RubyGems
24-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
25-
with:
26-
path: "tmp"
27-
repository: "shopify-playground/edouard-playground"
28-
token: ${{ inputs.token }}
23+
# - name: Checkout easy compile # TODO this can be removed once this tool is pusblished on RubyGems
24+
# uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
25+
# with:
26+
# path: "tmp"
27+
# repository: "shopify-playground/edouard-playground"
28+
# token: ${{ inputs.token }}
2929
- name: Install easy compile # TODO this can be removed once this tool is pusblished on RubyGems
3030
shell: bash
3131
run: "rake install"
32-
working-directory: "tmp"
33-
- name: "Setup Rake Compiler"
34-
if: "${{ inputs.step == 'compile' }}"
35-
uses: actions/github-script@v8
36-
with:
37-
script: |
38-
const url = new URL(`file:///${process.env.GITHUB_ACTION_PATH}/dist/index.js`);
39-
const { run } = await import(url.href)
40-
await run('${{ inputs.working-directory }}')
41-
- name: Package
42-
if: "${{ inputs.step == 'compile' }}"
43-
working-directory: ${{ inputs.working-directory }}
44-
shell: bash
45-
run: easy_compile package
46-
- name: Upload artifacts
47-
if: "${{ inputs.step == 'compile' }}"
48-
uses: actions/upload-artifact@v4
49-
with:
50-
name: "stage-${{ runner.os }}-${{ runner.arch }}"
51-
path: |
52-
${{ inputs.working-directory }}/tmp/**/*.so
53-
${{ inputs.working-directory }}/tmp/**/*.bundle
54-
${{ inputs.working-directory }}/pkg/*.gem
55-
if-no-files-found: error
56-
retention-days: 1
57-
- name: "Download compiled binaries"
58-
if: "${{ inputs.step == 'test_cross' }}"
59-
uses: actions/download-artifact@v5
60-
with:
61-
name: "stage-${{ runner.os }}-${{ runner.arch }}"
62-
path: "${{ inputs.working-directory }}"
63-
- name: "Copy staging binary to the libdir"
64-
if: "${{ inputs.step == 'test_cross' }}"
65-
working-directory: ${{ inputs.working-directory }}
66-
shell: bash
67-
run: easy_compile copy_from_staging_to_lib
68-
- name: "Compile native"
69-
if: "${{ inputs.step == 'test_native' }}"
70-
working-directory: ${{ inputs.working-directory }}
71-
shell: bash
72-
run: easy_compile compile
73-
- name: "Execute the tests"
74-
if: "${{ startsWith(inputs.step, 'test') }}"
75-
working-directory: ${{ inputs.working-directory }}
76-
shell: bash
77-
run: ${{ inputs.test-command }}
78-
- name: "Download tarball for platform"
79-
if: "${{ inputs.step == 'install' }}"
80-
uses: actions/download-artifact@v5
81-
with:
82-
name: "stage-${{ runner.os }}-${{ runner.arch }}"
83-
- name: "Download all gems"
84-
if: "${{ inputs.step == 'release' }}"
85-
uses: actions/download-artifact@v5
86-
with:
87-
merge-multiple: true
88-
- name: "Install gems"
89-
if: "${{ inputs.step == 'install' }}"
90-
shell: bash
91-
run: gem install pkg/*.gem
92-
- name: "Configure RubyGems crendentials in preparation for publishing"
93-
if: "${{ inputs.step == 'release' }}"
94-
uses: rubygems/[email protected]
95-
- name: "Push the gems to RubyGems"
96-
if: "${{ inputs.step == 'release' }}"
97-
shell: bash
98-
run: easy_compile release --glob "pkg/*"
99-
- name: "Waiting for RubyGems to fully index the new gems"
100-
if: "${{ inputs.step == 'release' }}"
101-
shell: bash
102-
run: gem exec rubygems-await pkg/*.gem
32+
working-directory: "${{ github.action_path }}"
33+
# - name: "Setup Rake Compiler"
34+
# if: "${{ inputs.step == 'compile' }}"
35+
# uses: actions/github-script@v8
36+
# with:
37+
# script: |
38+
# const url = new URL(`file:///${process.env.GITHUB_ACTION_PATH}/dist/index.js`);
39+
# const { run } = await import(url.href)
40+
# await run('${{ inputs.working-directory }}')
41+
# - name: Package
42+
# if: "${{ inputs.step == 'compile' }}"
43+
# working-directory: ${{ inputs.working-directory }}
44+
# shell: bash
45+
# run: easy_compile package
46+
# - name: Upload artifacts
47+
# if: "${{ inputs.step == 'compile' }}"
48+
# uses: actions/upload-artifact@v4
49+
# with:
50+
# name: "stage-${{ runner.os }}-${{ runner.arch }}"
51+
# path: |
52+
# ${{ inputs.working-directory }}/tmp/**/*.so
53+
# ${{ inputs.working-directory }}/tmp/**/*.bundle
54+
# ${{ inputs.working-directory }}/pkg/*.gem
55+
# if-no-files-found: error
56+
# retention-days: 1
57+
# - name: "Download compiled binaries"
58+
# if: "${{ inputs.step == 'test_cross' }}"
59+
# uses: actions/download-artifact@v5
60+
# with:
61+
# name: "stage-${{ runner.os }}-${{ runner.arch }}"
62+
# path: "${{ inputs.working-directory }}"
63+
# - name: "Copy staging binary to the libdir"
64+
# if: "${{ inputs.step == 'test_cross' }}"
65+
# working-directory: ${{ inputs.working-directory }}
66+
# shell: bash
67+
# run: easy_compile copy_from_staging_to_lib
68+
# - name: "Compile native"
69+
# if: "${{ inputs.step == 'test_native' }}"
70+
# working-directory: ${{ inputs.working-directory }}
71+
# shell: bash
72+
# run: easy_compile compile
73+
# - name: "Execute the tests"
74+
# if: "${{ startsWith(inputs.step, 'test') }}"
75+
# working-directory: ${{ inputs.working-directory }}
76+
# shell: bash
77+
# run: ${{ inputs.test-command }}
78+
# - name: "Download tarball for platform"
79+
# if: "${{ inputs.step == 'install' }}"
80+
# uses: actions/download-artifact@v5
81+
# with:
82+
# name: "stage-${{ runner.os }}-${{ runner.arch }}"
83+
# - name: "Download all gems"
84+
# if: "${{ inputs.step == 'release' }}"
85+
# uses: actions/download-artifact@v5
86+
# with:
87+
# merge-multiple: true
88+
# - name: "Install gems"
89+
# if: "${{ inputs.step == 'install' }}"
90+
# shell: bash
91+
# run: gem install pkg/*.gem
92+
# - name: "Configure RubyGems crendentials in preparation for publishing"
93+
# if: "${{ inputs.step == 'release' }}"
94+
# uses: rubygems/[email protected]
95+
# - name: "Push the gems to RubyGems"
96+
# if: "${{ inputs.step == 'release' }}"
97+
# shell: bash
98+
# run: easy_compile release --glob "pkg/*"
99+
# - name: "Waiting for RubyGems to fully index the new gems"
100+
# if: "${{ inputs.step == 'release' }}"
101+
# shell: bash
102+
# run: gem exec rubygems-await pkg/*.gem

.github/workflows/e2e-dummy-gem.yml

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
name: "Cross compile the gem on different ruby versions"
77
strategy:
88
matrix:
9-
os: ["macos-latest", "ubuntu-22.04", "windows-latest"]
9+
os: ["macos-latest"]
1010
runs-on: "${{ matrix.os }}"
1111
steps:
1212
- name: "Checkout code"
@@ -18,53 +18,53 @@ jobs:
1818
bundler-cache: true
1919
working-directory: "test/fixtures/dummy_gem"
2020
- name: "Run easy compile"
21-
uses: "./.github/actions/easy_compile"
21+
uses: "shopify-playground/edouard-playground/.github/actions/easy_compile@ec-no-token"
2222
with:
2323
step: "compile"
24-
token: ${{ secrets.GITHUB_TOKEN }}
24+
# token: ${{ secrets.GITHUB_TOKEN }}
2525
working-directory: "test/fixtures/dummy_gem"
26-
test:
27-
timeout-minutes: 20
28-
name: "Run the test suite"
29-
needs: compile
30-
strategy:
31-
matrix:
32-
os: ["macos-latest", "ubuntu-22.04", "windows-latest"]
33-
rubies: ["3.4.7", "3.1.7"]
34-
type: ["cross", "native"]
35-
runs-on: "${{ matrix.os }}"
36-
steps:
37-
- name: "Checkout code"
38-
uses: "actions/checkout@v5"
39-
- name: "Setup Ruby"
40-
uses: "ruby/setup-ruby@v1"
41-
with:
42-
ruby-version: "${{ matrix.rubies }}"
43-
bundler-cache: true
44-
working-directory: "test/fixtures/dummy_gem"
45-
- name: "Run easy compile"
46-
uses: "./.github/actions/easy_compile"
47-
with:
48-
step: "test_${{ matrix.type }}"
49-
token: ${{ secrets.GITHUB_TOKEN }} # TODO Remove this before publishing the gem
50-
working-directory: "test/fixtures/dummy_gem"
51-
install:
52-
timeout-minutes: 5
53-
name: "Verify the gem can be installed"
54-
needs: test
55-
strategy:
56-
matrix:
57-
os: ["macos-latest", "ubuntu-22.04", "windows-latest"]
58-
runs-on: "${{ matrix.os }}"
59-
steps:
60-
- name: "Checkout code"
61-
uses: "actions/checkout@v5"
62-
- name: "Setup Ruby"
63-
uses: "ruby/setup-ruby@v1"
64-
with:
65-
ruby-version: "3.4.7"
66-
- name: "Run easy compile"
67-
uses: "./.github/actions/easy_compile"
68-
with:
69-
token: ${{ secrets.GITHUB_TOKEN }} # TODO Remove this before publishing the gem
70-
step: "install"
26+
# test:
27+
# timeout-minutes: 20
28+
# name: "Run the test suite"
29+
# needs: compile
30+
# strategy:
31+
# matrix:
32+
# os: ["macos-latest", "ubuntu-22.04", "windows-latest"]
33+
# rubies: ["3.4.7", "3.1.7"]
34+
# type: ["cross", "native"]
35+
# runs-on: "${{ matrix.os }}"
36+
# steps:
37+
# - name: "Checkout code"
38+
# uses: "actions/checkout@v5"
39+
# - name: "Setup Ruby"
40+
# uses: "ruby/setup-ruby@v1"
41+
# with:
42+
# ruby-version: "${{ matrix.rubies }}"
43+
# bundler-cache: true
44+
# working-directory: "test/fixtures/dummy_gem"
45+
# - name: "Run easy compile"
46+
# uses: "./.github/actions/easy_compile"
47+
# with:
48+
# step: "test_${{ matrix.type }}"
49+
# token: ${{ secrets.GITHUB_TOKEN }} # TODO Remove this before publishing the gem
50+
# working-directory: "test/fixtures/dummy_gem"
51+
# install:
52+
# timeout-minutes: 5
53+
# name: "Verify the gem can be installed"
54+
# needs: test
55+
# strategy:
56+
# matrix:
57+
# os: ["macos-latest", "ubuntu-22.04", "windows-latest"]
58+
# runs-on: "${{ matrix.os }}"
59+
# steps:
60+
# - name: "Checkout code"
61+
# uses: "actions/checkout@v5"
62+
# - name: "Setup Ruby"
63+
# uses: "ruby/setup-ruby@v1"
64+
# with:
65+
# ruby-version: "3.4.7"
66+
# - name: "Run easy compile"
67+
# uses: "./.github/actions/easy_compile"
68+
# with:
69+
# token: ${{ secrets.GITHUB_TOKEN }} # TODO Remove this before publishing the gem
70+
# step: "install"

0 commit comments

Comments
 (0)