@@ -20,83 +20,83 @@ inputs:
2020runs :
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- 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
0 commit comments